From 9b069eaf92e513c64cfa71134bb2d20b6c3d5783 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 4 Jul 2014 05:11:55 +0000 Subject: [PATCH] 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. llvm-svn: 212316 --- test/Unit/lit.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/Unit/lit.cfg b/test/Unit/lit.cfg index 04e88306881..e481dcc6a7b 100644 --- a/test/Unit/lit.cfg +++ b/test/Unit/lit.cfg @@ -35,6 +35,11 @@ for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_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.