Remove unused flags.Nocrt
Nocrt is handled through deps.CrtBegin/End, flags.Nocrt is unused Change-Id: I8ab5313bb2eb3a00e336504d6dd3813350fbe14d Test: soong builds
This commit is contained in:
parent
7e9d295807
commit
01344df46e
4 changed files with 0 additions and 5 deletions
|
@ -161,7 +161,6 @@ type builderFlags struct {
|
|||
ldFlags string
|
||||
libFlags string
|
||||
yaccFlags string
|
||||
nocrt bool
|
||||
toolchain config.Toolchain
|
||||
clang bool
|
||||
|
||||
|
|
1
cc/cc.go
1
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
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue