summaryrefslogtreecommitdiffstats
path: root/clang/runtime
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2013-11-15 14:56:31 +0000
committerAlexander Potapenko <glider@google.com>2013-11-15 14:56:31 +0000
commit19e7bfdd8df157f72b7b01548f5b38bbc8ef4743 (patch)
treebf73e458343115c5b3fc3f03489a61c075e94d0e /clang/runtime
parentf0f2d58086c53da2bc2b08cdc1259de57c6925be (diff)
downloadbcm5719-llvm-19e7bfdd8df157f72b7b01548f5b38bbc8ef4743.tar.gz
bcm5719-llvm-19e7bfdd8df157f72b7b01548f5b38bbc8ef4743.zip
[ASan] If the iOS Simulator SDK is available, build the ASan iossim runtime using configure+make.
llvm-svn: 194816
Diffstat (limited to 'clang/runtime')
-rw-r--r--clang/runtime/compiler-rt/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/runtime/compiler-rt/Makefile b/clang/runtime/compiler-rt/Makefile
index 7769e3b440e..e34a69fe9e5 100644
--- a/clang/runtime/compiler-rt/Makefile
+++ b/clang/runtime/compiler-rt/Makefile
@@ -94,6 +94,10 @@ ACTIVE_SDK_PATH := $(shell xcrun --show-sdk-path 2> /dev/null)
ifneq ($(ACTIVE_SDK_PATH),)
COMPILERRT_MAKE_FLAGS := SDKROOT=$(ACTIVE_SDK_PATH)
endif
+IOSSIM_SDK_PATH := $(shell xcrun --show-sdk-path -sdk iphonesimulator 2> /dev/null)
+ifneq ($(IOSSIM_SDK_PATH),)
+RuntimeLibrary.darwin.Configs += asan_iossim_dynamic.dylib
+endif
endif
OpenPOWER on IntegriCloud