Skip to content

Commit

Permalink
Don't set $LIB if we're not targetting windows.
Browse files Browse the repository at this point in the history
Reviewers: timurrrr, samsonov

Subscribers: llvm-commits

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

llvm-svn: 230091
  • Loading branch information
filcab committed Feb 20, 2015
1 parent 6897e3e commit 0385152
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler-rt/test/lit.common.cfg
Expand Up @@ -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.
Expand Down

0 comments on commit 0385152

Please sign in to comment.