Don't set $LIB if we're not targetting windows.
authorFilipe Cabecinhas <me@filcab.net>
Fri, 20 Feb 2015 23:35:19 +0000 (23:35 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Fri, 20 Feb 2015 23:35:19 +0000 (23:35 +0000)
Reviewers: timurrrr, samsonov

Subscribers: llvm-commits

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

llvm-svn: 230091

compiler-rt/test/lit.common.cfg

index 0ee2b84..0a55186 100644 (file)
@@ -61,7 +61,8 @@ path = os.path.pathsep.join((llvm_tools_dir, config.environment['PATH']))
 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.