Remove duplicate code.
Test: NFC
Change-Id: I63a1b1ee244c2ab015914e1879aefc3ba8f886b0
diff --git a/cc/sanitize.go b/cc/sanitize.go
index 79c86aa..b795cc3 100644
--- a/cc/sanitize.go
+++ b/cc/sanitize.go
@@ -280,11 +280,6 @@
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)