Skip to content

Commit 7bc6345

Browse files
committed
github: Copy in the dependency DLLs into the bin dir in test-llvm
This avoids relying on finding these dependencies in $PATH while running the tests. Some tests may set PATH="" while executing them, which previously caused those tests to fail in this build setup. The same is not an issue with MSVC builds with -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL, because those DLLs are also available in global system directories (including DLLs such as msvcp140.dll and vcruntime140.dll).
1 parent e633b48 commit 7bc6345

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test-llvm.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ jobs:
8787
-DCMAKE_CXX_COMPILER=clang++ `
8888
-DLLVM_LIT_ARGS="-v --time-tests"
8989
ninja test-depends
90+
cp c:\llvm-mingw\bin\libc++.dll bin
91+
cp c:\llvm-mingw\bin\libunwind.dll bin
9092
- name: Run tests
9193
run: |
9294
cd llvm-project

0 commit comments

Comments
 (0)