diff options
author | Dan Willemsen <dwillemsen@google.com> | 2018-10-07 20:54:34 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2018-10-09 02:16:58 +0000 |
commit | 8536d6b3b7d9514656c66ce0c000fa66e43895be (patch) | |
tree | 4c1dbd921aaa0dc27ed9b99884085bc267f59460 /cc/object.go | |
parent | 230e4c77a56ac6b46628fbb7a5d2b80c68beeb48 (diff) | |
download | android_build_soong-8536d6b3b7d9514656c66ce0c000fa66e43895be.tar.gz android_build_soong-8536d6b3b7d9514656c66ce0c000fa66e43895be.tar.bz2 android_build_soong-8536d6b3b7d9514656c66ce0c000fa66e43895be.zip |
Remove GCC checks
Clang is always used now, so we can remove all the GCC checks. Removing
GCC-specific configuration will happen in the next CL.
Test: m
Change-Id: I4835ecf6062159315d0dfb07b098e60bff033a8a
Diffstat (limited to 'cc/object.go')
-rw-r--r-- | cc/object.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cc/object.go b/cc/object.go index 25771951..0010621d 100644 --- a/cc/object.go +++ b/cc/object.go @@ -64,11 +64,7 @@ func (object *objectLinker) linkerDeps(ctx DepsContext, deps Deps) Deps { } func (*objectLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags { - if flags.Clang { - flags.LdFlags = append(flags.LdFlags, ctx.toolchain().ToolchainClangLdflags()) - } else { - flags.LdFlags = append(flags.LdFlags, ctx.toolchain().ToolchainLdflags()) - } + flags.LdFlags = append(flags.LdFlags, ctx.toolchain().ToolchainClangLdflags()) return flags } |