diff --git a/cc/builder.go b/cc/builder.go index f1282f514..b84c9282e 100644 --- a/cc/builder.go +++ b/cc/builder.go @@ -161,7 +161,6 @@ type builderFlags struct { ldFlags string libFlags string yaccFlags string - nocrt bool toolchain config.Toolchain clang bool diff --git a/cc/cc.go b/cc/cc.go index 54d9a94d5..8af2b8c70 100644 --- a/cc/cc.go +++ b/cc/cc.go @@ -94,7 +94,6 @@ type Flags struct { 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 5b7ea8b8b..976775593 100644 --- a/cc/linker.go +++ b/cc/linker.go @@ -136,8 +136,6 @@ func (linker *baseLinker) linkerDeps(ctx BaseModuleContext, deps Deps) Deps { 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 ca6aa5d56..9ab74c3eb 100644 --- a/cc/util.go +++ b/cc/util.go @@ -95,7 +95,6 @@ func flagsToBuilderFlags(in Flags) builderFlags { yaccFlags: strings.Join(in.YaccFlags, " "), ldFlags: strings.Join(in.LdFlags, " "), libFlags: strings.Join(in.libFlags, " "), - nocrt: in.Nocrt, toolchain: in.Toolchain, clang: in.Clang, }