summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2018-03-19 18:22:35 +0000
committerVitaly Buka <vitalybuka@google.com>2018-03-19 18:22:35 +0000
commitd03bc7c26a0cf882ca642c3989d487321ce34484 (patch)
tree7e3b8f704dc2d89409e66727b09dcc72183efaee /compiler-rt
parent3336aa0d07742f12e7074612da550575874701e8 (diff)
downloadbcm5719-llvm-d03bc7c26a0cf882ca642c3989d487321ce34484.tar.gz
bcm5719-llvm-d03bc7c26a0cf882ca642c3989d487321ce34484.zip
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
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt
index 4b953b21282..a02ef9532c9 100644
--- a/compiler-rt/CMakeLists.txt
+++ b/compiler-rt/CMakeLists.txt
@@ -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)
OpenPOWER on IntegriCloud