diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-07-04 05:11:55 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-07-04 05:11:55 +0000 |
| commit | b52c761a3c80eceed32c50c2da7f6637889e52eb (patch) | |
| tree | 95dde5cf1203cb5ee58c921ba4082a59708b624c /llvm/test/Unit | |
| parent | 8d7a173f4b2d94219415f675d52ffee4bf617014 (diff) | |
| download | bcm5719-llvm-b52c761a3c80eceed32c50c2da7f6637889e52eb.tar.gz bcm5719-llvm-b52c761a3c80eceed32c50c2da7f6637889e52eb.zip | |
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
Diffstat (limited to 'llvm/test/Unit')
| -rw-r--r-- | llvm/test/Unit/lit.cfg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/Unit/lit.cfg b/llvm/test/Unit/lit.cfg index 04e88306881..e481dcc6a7b 100644 --- a/llvm/test/Unit/lit.cfg +++ b/llvm/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. |

