[llvm] r212316 - Let test/Unit/lit.cfg add config.shlibdir to $PATH on DLL platforms like cygming.
NAKAMURA Takumi
geek4civic at gmail.com
Thu Jul 3 22:11:55 PDT 2014
Author: chapuni
Date: Fri Jul 4 00:11:55 2014
New Revision: 212316
URL: http://llvm.org/viewvc/llvm-project?rev=212316&view=rev
Log:
Let test/Unit/lit.cfg add config.shlibdir to $PATH on DLL platforms like cygming.
This makes unittests run with BUILD_SHARED_LIBS on DLL platforms.
Modified:
llvm/trunk/test/Unit/lit.cfg
Modified: llvm/trunk/test/Unit/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Unit/lit.cfg?rev=212316&r1=212315&r2=212316&view=diff
==============================================================================
--- llvm/trunk/test/Unit/lit.cfg (original)
+++ llvm/trunk/test/Unit/lit.cfg Fri Jul 4 00:11:55 2014
@@ -35,6 +35,11 @@ for symbolizer in ['ASAN_SYMBOLIZER_PATH
if symbolizer in os.environ:
config.environment[symbolizer] = os.environ[symbolizer]
+# Win32 seeks DLLs along %PATH%.
+if sys.platform in ['win32', 'cygwin'] and os.path.isdir(config.shlibdir):
+ config.environment['PATH'] = os.path.pathsep.join((
+ config.shlibdir, config.environment['PATH']))
+
###
# Check that the object root is known.
More information about the llvm-commits
mailing list