summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2018-01-19 22:17:39 +0000
committerKostya Kortchinsky <kostyak@google.com>2018-01-19 22:17:39 +0000
commit5435b68a11382ede6deea4ee01f69e78e69bdbd1 (patch)
tree04759e18052825691bb012e3126e6276240e58bc
parent50584ea19783d8e7defd1c1a68c9869d06f84822 (diff)
downloadbcm5719-llvm-5435b68a11382ede6deea4ee01f69e78e69bdbd1.tar.gz
bcm5719-llvm-5435b68a11382ede6deea4ee01f69e78e69bdbd1.zip
[scudo] Pass SANITIZER_COMMON_LINK_FLAGS to the shared library LINK_FLAGS
Summary: We somehow never did it, and it raised no issue until now, when trying to enable Fuchsia as a supported Scudo platform in the cmake config. So propagate SANITIZER_COMMON_LINK_FLAGS for now. Reviewers: alekseyshl, flowerhack Reviewed By: flowerhack Subscribers: mgorny, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D42314 llvm-svn: 322999
-rw-r--r--compiler-rt/lib/scudo/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/lib/scudo/CMakeLists.txt b/compiler-rt/lib/scudo/CMakeLists.txt
index f86de6a6e21..b612fc54133 100644
--- a/compiler-rt/lib/scudo/CMakeLists.txt
+++ b/compiler-rt/lib/scudo/CMakeLists.txt
@@ -7,6 +7,8 @@ set(SCUDO_CFLAGS ${SANITIZER_COMMON_CFLAGS})
list(APPEND SCUDO_CFLAGS -fbuiltin)
append_rtti_flag(OFF SCUDO_CFLAGS)
+set(SCUDO_DYNAMIC_LINK_FLAGS ${SANITIZER_COMMON_LINK_FLAGS})
+
set(SCUDO_SOURCES
scudo_allocator.cpp
scudo_flags.cpp
@@ -68,6 +70,7 @@ if(COMPILER_RT_HAS_SCUDO)
RTUbsan
RTUbsan_cxx
CFLAGS ${SCUDO_CFLAGS}
+ LINK_FLAGS ${SCUDO_DYNAMIC_LINK_FLAGS}
LINK_LIBS ${SCUDO_DYNAMIC_LIBS}
PARENT_TARGET scudo)
endif()
OpenPOWER on IntegriCloud