summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/stats
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2017-07-28 03:39:38 +0000
committerPetr Hosek <phosek@chromium.org>2017-07-28 03:39:38 +0000
commit2bbb6ad217353b8250bc01ed78a1a9b81f194d87 (patch)
tree1b5090c605b640f2f52a0f64a6cf8432852f7b2f /compiler-rt/lib/stats
parenta219b3d8d1fd65b5b52ee47b026d092ad10c44ef (diff)
downloadbcm5719-llvm-2bbb6ad217353b8250bc01ed78a1a9b81f194d87.tar.gz
bcm5719-llvm-2bbb6ad217353b8250bc01ed78a1a9b81f194d87.zip
Support compiler-rt builtins
This change adds support for compiler-rt builtins as an alternative compiler runtime to libgcc. Differential Revision: https://reviews.llvm.org/D35165 llvm-svn: 309361
Diffstat (limited to 'compiler-rt/lib/stats')
-rw-r--r--compiler-rt/lib/stats/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler-rt/lib/stats/CMakeLists.txt b/compiler-rt/lib/stats/CMakeLists.txt
index 2b3d6474bb7..6be36a7cb56 100644
--- a/compiler-rt/lib/stats/CMakeLists.txt
+++ b/compiler-rt/lib/stats/CMakeLists.txt
@@ -6,6 +6,8 @@ set_target_properties(stats PROPERTIES FOLDER "Compiler-RT Misc")
if(APPLE)
set(STATS_LIB_FLAVOR SHARED)
+ set(STATS_LINK_LIBS ${SANITIZER_COMMON_LINK_LIBS})
+
add_weak_symbols("asan" WEAK_SYMBOL_LINK_FLAGS)
add_weak_symbols("ubsan" WEAK_SYMBOL_LINK_FLAGS)
add_weak_symbols("sanitizer_common" WEAK_SYMBOL_LINK_FLAGS)
@@ -23,7 +25,8 @@ add_compiler_rt_runtime(clang_rt.stats
OBJECT_LIBS RTSanitizerCommon
RTSanitizerCommonLibc
CFLAGS ${SANITIZER_COMMON_CFLAGS}
- LINK_FLAGS ${WEAK_SYMBOL_LINK_FLAGS}
+ LINK_FLAGS ${SANITIZER_COMMON_LINK_FLAGS} ${WEAK_SYMBOL_LINK_FLAGS}
+ LINK_LIBS ${STATS_LINK_LIBS}
PARENT_TARGET stats)
add_compiler_rt_runtime(clang_rt.stats_client
OpenPOWER on IntegriCloud