[PATCH] Don't set $LIB if we're not targetting windows.

Filipe Cabecinhas filcab+llvm.phabricator at gmail.com
Fri Feb 20 15:37:31 PST 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7739

Files:
  compiler-rt/trunk/test/lit.common.cfg

Index: compiler-rt/trunk/test/lit.common.cfg
===================================================================
--- compiler-rt/trunk/test/lit.common.cfg
+++ compiler-rt/trunk/test/lit.common.cfg
@@ -61,7 +61,8 @@
 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.

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7739.20443.patch
Type: text/x-patch
Size: 593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150220/623955b5/attachment.bin>


More information about the llvm-commits mailing list