Skip to content

Commit 19e7bfd

Browse files
[ASan] If the iOS Simulator SDK is available, build the ASan iossim runtime using configure+make.
llvm-svn: 194816
1 parent f0f2d58 commit 19e7bfd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/runtime/compiler-rt/Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ ACTIVE_SDK_PATH := $(shell xcrun --show-sdk-path 2> /dev/null)
9494
ifneq ($(ACTIVE_SDK_PATH),)
9595
COMPILERRT_MAKE_FLAGS := SDKROOT=$(ACTIVE_SDK_PATH)
9696
endif
97+
IOSSIM_SDK_PATH := $(shell xcrun --show-sdk-path -sdk iphonesimulator 2> /dev/null)
98+
ifneq ($(IOSSIM_SDK_PATH),)
99+
RuntimeLibrary.darwin.Configs += asan_iossim_dynamic.dylib
100+
endif
97101

98102
endif
99103

0 commit comments

Comments
 (0)