[ASan] If the iOS Simulator SDK is available, build the ASan iossim runtime using configure+make.

llvm-svn: 194816
This commit is contained in:
Alexander Potapenko 2013-11-15 14:56:31 +00:00
parent f0f2d58086
commit 19e7bfdd8d
1 changed files with 4 additions and 0 deletions

View File

@ -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