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).
This commit is contained in:
Martin Storsjö committed 2025-05-06 11:23:42 +03:00
1 parent e633b48b63
commit 7bc6345fa7
1 file changed
+2
+2
View File
@@ -87,6 +87,8 @@ jobs:
-DCMAKE_CXX_COMPILER=clang++ `
-DLLVM_LIT_ARGS="-v --time-tests"
ninja test-depends
cp c:\llvm-mingw\bin\libc++.dll bin
cp c:\llvm-mingw\bin\libunwind.dll bin
- name: Run tests
run: |
cd llvm-project