diff options
author | Alexander Potapenko <glider@google.com> | 2013-11-15 14:56:31 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2013-11-15 14:56:31 +0000 |
commit | 71940883821bd55028f4c2773de10a532c1d8aea (patch) | |
tree | 9f9f6cd86c2a3acd4b9edd580694f97fa34c3e50 /runtime/compiler-rt | |
parent | 6c6fd7e9596e7c870e322f4030bdd16235348378 (diff) |
[ASan] If the iOS Simulator SDK is available, build the ASan iossim runtime using configure+make.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/compiler-rt')
-rw-r--r-- | runtime/compiler-rt/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/compiler-rt/Makefile b/runtime/compiler-rt/Makefile index 7769e3b440..e34a69fe9e 100644 --- a/runtime/compiler-rt/Makefile +++ b/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 |