[gn build] Don't pass -Wl,-z,defs for sanitizer builds
authorArthur Eubanks <aeubanks@google.com>
Mon, 20 Sep 2021 17:42:07 +0000 (10:42 -0700)
committerArthur Eubanks <aeubanks@google.com>
Mon, 20 Sep 2021 18:39:39 +0000 (11:39 -0700)
commitb64fdaa86b5b35fa982dd1f41d32b37a9d5208b6
tree80cd11c50f595ae10e93392040f907b788831945
parentdd0226561e86e491f77464b1d3afe5bb53a2c54e
[gn build] Don't pass -Wl,-z,defs for sanitizer builds

-Wl,-z,defs doesn't work with sanitizers.
See https://clang.llvm.org/docs/AddressSanitizer.html

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D110086
llvm/utils/gn/build/BUILD.gn
llvm/utils/gn/build/BUILDCONFIG.gn
llvm/utils/gn/build/toolchain/BUILD.gn