[compiler-rt] r322409 - [libFuzzer] Fix bug introduced in r322380 that always links -lc++.

Matt Morehouse via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 12 14:10:47 PST 2018


Author: morehouse
Date: Fri Jan 12 14:10:47 2018
New Revision: 322409

URL: http://llvm.org/viewvc/llvm-project?rev=322409&view=rev
Log:
[libFuzzer] Fix bug introduced in r322380 that always links -lc++.

Modified:
    compiler-rt/trunk/test/fuzzer/lit.cfg

Modified: compiler-rt/trunk/test/fuzzer/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/lit.cfg?rev=322409&r1=322408&r2=322409&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/lit.cfg (original)
+++ compiler-rt/trunk/test/fuzzer/lit.cfg Fri Jan 12 14:10:47 2018
@@ -51,7 +51,7 @@ config.substitutions.append(('%libfuzzer
 
 def generate_compiler_cmd(is_cpp=True, fuzzer_enabled=True):
   compiler_cmd = config.c_compiler
-  link_cmd = '-lc++' if 'darwin' or 'freebsd' in config.target_triple else '-lstdc++'
+  link_cmd = '-lc++' if any(x in config.target_triple for x in ('darwin', 'freebsd')) else '-lstdc++'
   std_cmd = '-std=c++11' if is_cpp else ''
   sanitizers = ['address']
   if fuzzer_enabled:




More information about the llvm-commits mailing list