forked from OSchip/llvm-project
Fix CMake/MSVC when compiler-rt and llvm are built separately
Summary: For some reason CMake can't find the `append` macro if LLVM is built separately and imported via `LLVM_CONFIG_PATH`. Patch by Loo Rong Jie Reviewers: rnk, vitalybuka Reviewed By: rnk, vitalybuka Subscribers: dberris, mgorny, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D43458 llvm-svn: 327876
This commit is contained in:
parent
3336aa0d07
commit
d03bc7c26a
|
@ -339,7 +339,7 @@ if (CMAKE_LINKER MATCHES "link.exe$")
|
|||
# it, but CMake doesn't seem to have a way to set linker flags for
|
||||
# individual static libraries, so we enable the suppression flag for
|
||||
# the whole compiler-rt project.
|
||||
append("/IGNORE:4221" CMAKE_STATIC_LINKER_FLAGS)
|
||||
set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} /IGNORE:4221")
|
||||
endif()
|
||||
|
||||
add_subdirectory(include)
|
||||
|
|
Loading…
Reference in New Issue