[llvm] 1d085f1 - [gn build] Don't pass -fuse-ld=lld to compiler-rt tests

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 26 15:08:30 PST 2022


Author: Arthur Eubanks
Date: 2022-01-26T15:08:22-08:00
New Revision: 1d085f1147346fb4030f4bd467f8447f3cd16c36

URL: https://github.com/llvm/llvm-project/commit/1d085f1147346fb4030f4bd467f8447f3cd16c36
DIFF: https://github.com/llvm/llvm-project/commit/1d085f1147346fb4030f4bd467f8447f3cd16c36.diff

LOG: [gn build] Don't pass -fuse-ld=lld to compiler-rt tests

This was done for check-hwasan, but compiler-rt/test/hwasan/lit.cfg.py
already does that.

This makes check-asan (to be submitted) fail on Windows due to using
lld-link (as opposed to MSVC link.exe) in tests. That seems like a
problem that should be fixed, but that's orthogonal to this patch.

Added: 
    

Modified: 
    llvm/utils/gn/secondary/compiler-rt/test/test.gni

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/compiler-rt/test/test.gni b/llvm/utils/gn/secondary/compiler-rt/test/test.gni
index 72d5bc202fbc0..2d1aa0721248e 100644
--- a/llvm/utils/gn/secondary/compiler-rt/test/test.gni
+++ b/llvm/utils/gn/secondary/compiler-rt/test/test.gni
@@ -10,7 +10,7 @@ declare_args() {
 
 target_flags_string = ""
 
-foreach(flag, target_flags + target_ldflags + [ "-fuse-ld=lld" ]) {
+foreach(flag, target_flags + target_ldflags) {
   if (target_flags_string != "") {
     target_flags_string += " "
   }


        


More information about the llvm-commits mailing list