Skip to content

Commit 10b1864

Browse files
committed
[compiler-rt] Do not add -rpath to linker args on Windows
This is not supported. Should hopefully fix Windows CI after commit c91254d.
1 parent d57d094 commit 10b1864

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler-rt/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,9 @@ if (COMPILER_RT_TEST_STANDALONE_BUILD_LIBS)
602602
list(APPEND COMPILER_RT_UNITTEST_LINK_FLAGS "-resource-dir=${COMPILER_RT_OUTPUT_DIR}")
603603
endif()
604604
get_compiler_rt_output_dir(${COMPILER_RT_DEFAULT_TARGET_ARCH} rtlib_dir)
605-
list(APPEND COMPILER_RT_UNITTEST_LINK_FLAGS "-Wl,-rpath,${rtlib_dir}")
605+
if (NOT WIN32)
606+
list(APPEND COMPILER_RT_UNITTEST_LINK_FLAGS "-Wl,-rpath,${rtlib_dir}")
607+
endif()
606608
endif()
607609

608610
if(COMPILER_RT_USE_LLVM_UNWINDER)

0 commit comments

Comments
 (0)