diff options
author | Alex Richardson <alexrichardson@google.com> | 2024-04-07 10:21:51 -0700 |
---|---|---|
committer | Alex Richardson <alexrichardson@google.com> | 2024-04-07 10:22:06 -0700 |
commit | 10b1864dff816174cd83fb2d3bc622e25fcf0f8a (patch) | |
tree | 9409dfc2bcb9cebbb77c179d59880805cdabe653 | |
parent | d57d09477996e50237e2fc949bd5b747259b0012 (diff) | |
download | llvm-10b1864dff816174cd83fb2d3bc622e25fcf0f8a.zip llvm-10b1864dff816174cd83fb2d3bc622e25fcf0f8a.tar.gz llvm-10b1864dff816174cd83fb2d3bc622e25fcf0f8a.tar.bz2 |
[compiler-rt] Do not add -rpath to linker args on Windows
This is not supported. Should hopefully fix Windows CI after
commit c91254db1dcace869f4d3f1ac659bdd7700a1459.
-rw-r--r-- | compiler-rt/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt index af374ed..8649507c 100644 --- a/compiler-rt/CMakeLists.txt +++ b/compiler-rt/CMakeLists.txt @@ -602,7 +602,9 @@ if (COMPILER_RT_TEST_STANDALONE_BUILD_LIBS) list(APPEND COMPILER_RT_UNITTEST_LINK_FLAGS "-resource-dir=${COMPILER_RT_OUTPUT_DIR}") endif() get_compiler_rt_output_dir(${COMPILER_RT_DEFAULT_TARGET_ARCH} rtlib_dir) - list(APPEND COMPILER_RT_UNITTEST_LINK_FLAGS "-Wl,-rpath,${rtlib_dir}") + if (NOT WIN32) + list(APPEND COMPILER_RT_UNITTEST_LINK_FLAGS "-Wl,-rpath,${rtlib_dir}") + endif() endif() if(COMPILER_RT_USE_LLVM_UNWINDER) |