Remove unused flags.Nocrt
Nocrt is handled through deps.CrtBegin/End, flags.Nocrt is unused
Change-Id: I8ab5313bb2eb3a00e336504d6dd3813350fbe14d
Test: soong builds
diff --git a/cc/builder.go b/cc/builder.go
index f1282f5..b84c928 100644
--- a/cc/builder.go
+++ b/cc/builder.go
@@ -161,7 +161,6 @@
ldFlags string
libFlags string
yaccFlags string
- nocrt bool
toolchain config.Toolchain
clang bool
diff --git a/cc/cc.go b/cc/cc.go
index 54d9a94..8af2b8c 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -94,7 +94,6 @@
LdFlags []string // Flags that apply to linker command lines
libFlags []string // Flags to add libraries early to the link order
- Nocrt bool
Toolchain config.Toolchain
Clang bool
diff --git a/cc/linker.go b/cc/linker.go
index 5b7ea8b..9767755 100644
--- a/cc/linker.go
+++ b/cc/linker.go
@@ -136,8 +136,6 @@
func (linker *baseLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags {
toolchain := ctx.toolchain()
- flags.Nocrt = Bool(linker.Properties.Nocrt)
-
if !ctx.noDefaultCompilerFlags() {
if ctx.Device() && !Bool(linker.Properties.Allow_undefined_symbols) {
flags.LdFlags = append(flags.LdFlags, "-Wl,--no-undefined")
diff --git a/cc/util.go b/cc/util.go
index ca6aa5d..9ab74c3 100644
--- a/cc/util.go
+++ b/cc/util.go
@@ -95,7 +95,6 @@
yaccFlags: strings.Join(in.YaccFlags, " "),
ldFlags: strings.Join(in.LdFlags, " "),
libFlags: strings.Join(in.libFlags, " "),
- nocrt: in.Nocrt,
toolchain: in.Toolchain,
clang: in.Clang,
}