[compiler-rt] r230091 - Don't set $LIB if we're not targetting windows.

Filipe Cabecinhas me at filcab.net
Fri Feb 20 15:35:19 PST 2015

Author: filcab
Date: Fri Feb 20 17:35:19 2015
New Revision: 230091

URL: http://llvm.org/viewvc/llvm-project?rev=230091&view=rev
Don't set $LIB if we're not targetting windows.

Reviewers: timurrrr, samsonov

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D7739


Modified: compiler-rt/trunk/test/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.cfg?rev=230091&r1=230090&r2=230091&view=diff
--- compiler-rt/trunk/test/lit.common.cfg (original)
+++ compiler-rt/trunk/test/lit.common.cfg Fri Feb 20 17:35:19 2015
@@ -61,7 +61,8 @@ path = os.path.pathsep.join((llvm_tools_
 config.environment['PATH'] = path
 # Help MSVS link.exe find the standard libraries.
-if platform.system() == 'Windows':
+# Make sure we only try to use it when targetting Windows.
+if platform.system() == 'Windows' and '-win' in config.target_triple:
   config.environment['LIB'] = os.environ['LIB']
 # Use ugly construction to explicitly prohibit "clang", "clang++" etc.

More information about the llvm-commits mailing list