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:
cfe/trunk/test/Unit/lit.cfg
Modified: cfe/trunk/test/Unit/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Unit/lit.cfg?rev=212316&r1=212315&r2=212316&view=diff
==============================================================================
--- cfe/trunk/test/Unit/lit.cfg (original)
+++ cfe/trunk/test/Unit/lit.cfg Fri Jul 4 00:11:55 2014
@@ -100,4 +100,9 @@ if not llvm_libs_dir:
lit_config.fatal('No LLVM libs dir set!')
shlibpath = os.path.pathsep.join((llvm_libs_dir,
config.environment.get(shlibpath_var,'')))
+
+# Win32 seeks DLLs along %PATH%.
+if sys.platform in ['win32', 'cygwin'] and os.path.isdir(config.shlibdir):
+ shlibpath = os.path.pathsep.join((config.shlibdir, shlibpath))
+
config.environment[shlibpath_var] = shlibpath
More information about the cfe-commits
mailing list