From 7bc6345fa7518eee70710ec9ec405e95f070c932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 2 May 2025 16:42:16 +0300 Subject: [PATCH] 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). --- .github/workflows/test-llvm.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test-llvm.yml b/.github/workflows/test-llvm.yml index ffb9905..9633a5e 100644 --- a/.github/workflows/test-llvm.yml +++ b/.github/workflows/test-llvm.yml @@ -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