aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorEvgenii Stepanov <eugenis@google.com>2017-01-31 16:25:53 -0800
committerEvgenii Stepanov <eugenis@google.com>2017-02-03 13:25:03 -0800
commitcb3f89026382ba0b264c5440fab5e8c4593cd31b (patch)
treee5c7069f47eced3999d440c6c8c43035ec655af7 /cc
parent294941bee9566e76047a230acea451cbc188210b (diff)
downloadbuild_soong-cb3f89026382ba0b264c5440fab5e8c4593cd31b.tar.gz
build_soong-cb3f89026382ba0b264c5440fab5e8c4593cd31b.tar.bz2
build_soong-cb3f89026382ba0b264c5440fab5e8c4593cd31b.zip
Remove duplicate code.
Test: NFC Change-Id: I63a1b1ee244c2ab015914e1879aefc3ba8f886b0
Diffstat (limited to 'cc')
-rw-r--r--cc/sanitize.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/cc/sanitize.go b/cc/sanitize.go
index 79c86aaa..b795cc3a 100644
--- a/cc/sanitize.go
+++ b/cc/sanitize.go
@@ -280,11 +280,6 @@ func (sanitize *sanitize) flags(ctx ModuleContext, flags Flags) Flags {
flags.CFlags = append(flags.CFlags, asanCflags)
flags.LdFlags = append(flags.LdFlags, asanLdflags)
- // ASan runtime library must be the first in the link order.
- runtimeLibrary := config.AddressSanitizerRuntimeLibrary(ctx.toolchain())
- if runtimeLibrary != "" {
- flags.libFlags = append([]string{"${config.ClangAsanLibDir}/" + runtimeLibrary}, flags.libFlags...)
- }
if ctx.Host() {
// -nodefaultlibs (provided with libc++) prevents the driver from linking
// libraries needed with -fsanitize=address. http://b/18650275 (WAI)