diff --git a/runtime/compiler-rt/Makefile b/runtime/compiler-rt/Makefile index 0ddcdd8aacafe1fd02eee52c88d26483a83dc9c8..55642a6f0cc53f18984500ab275a177f636abef5 100644 --- a/runtime/compiler-rt/Makefile +++ b/runtime/compiler-rt/Makefile @@ -89,8 +89,10 @@ RuntimeLibrary.darwin.Configs += ios.a profile_ios.a endif ifneq ($(IOS_SDK),) +ifneq (,$(filter ARM AARCH64,$(TARGETS_TO_BUILD))) RuntimeLibrary.darwin.Configs += cc_kext_ios.a endif +endif ifneq ($(IOSSIM_SDK),) RuntimeLibrary.darwin.Configs += asan_iossim_dynamic.dylib \