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:
@@ -161,7 +161,6 @@ type builderFlags struct {
|
|||||||
ldFlags string
|
ldFlags string
|
||||||
libFlags string
|
libFlags string
|
||||||
yaccFlags string
|
yaccFlags string
|
||||||
nocrt bool
|
|
||||||
toolchain config.Toolchain
|
toolchain config.Toolchain
|
||||||
clang bool
|
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
|
LdFlags []string // Flags that apply to linker command lines
|
||||||
libFlags []string // Flags to add libraries early to the link order
|
libFlags []string // Flags to add libraries early to the link order
|
||||||
|
|
||||||
Nocrt bool
|
|
||||||
Toolchain config.Toolchain
|
Toolchain config.Toolchain
|
||||||
Clang bool
|
Clang bool
|
||||||
|
|
||||||
|
@@ -136,8 +136,6 @@ func (linker *baseLinker) linkerDeps(ctx BaseModuleContext, deps Deps) Deps {
|
|||||||
func (linker *baseLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags {
|
func (linker *baseLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags {
|
||||||
toolchain := ctx.toolchain()
|
toolchain := ctx.toolchain()
|
||||||
|
|
||||||
flags.Nocrt = Bool(linker.Properties.Nocrt)
|
|
||||||
|
|
||||||
if !ctx.noDefaultCompilerFlags() {
|
if !ctx.noDefaultCompilerFlags() {
|
||||||
if ctx.Device() && !Bool(linker.Properties.Allow_undefined_symbols) {
|
if ctx.Device() && !Bool(linker.Properties.Allow_undefined_symbols) {
|
||||||
flags.LdFlags = append(flags.LdFlags, "-Wl,--no-undefined")
|
flags.LdFlags = append(flags.LdFlags, "-Wl,--no-undefined")
|
||||||
|
@@ -95,7 +95,6 @@ func flagsToBuilderFlags(in Flags) builderFlags {
|
|||||||
yaccFlags: strings.Join(in.YaccFlags, " "),
|
yaccFlags: strings.Join(in.YaccFlags, " "),
|
||||||
ldFlags: strings.Join(in.LdFlags, " "),
|
ldFlags: strings.Join(in.LdFlags, " "),
|
||||||
libFlags: strings.Join(in.libFlags, " "),
|
libFlags: strings.Join(in.libFlags, " "),
|
||||||
nocrt: in.Nocrt,
|
|
||||||
toolchain: in.Toolchain,
|
toolchain: in.Toolchain,
|
||||||
clang: in.Clang,
|
clang: in.Clang,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user