]> granicus.if.org Git - clang/commitdiff
Fix makefile build on OSX when ARM targets are not enabled
authorKeno Fischer <kfischer@college.harvard.edu>
Sun, 4 Oct 2015 18:51:04 +0000 (18:51 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Sun, 4 Oct 2015 18:51:04 +0000 (18:51 +0000)
Summary: When LLVM/Clang is built without ARM support, the ios_kext runtime
library is not built, but without this patch, the Makefile still tries to
copy it. This is a recent regression, because the ios_kext library used
to also be built on x86_64.

Reviewers: beanz

Subscribers: aemerson, cfe-commits, rengolin

Differential Revision: http://reviews.llvm.org/D13421

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249281 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/compiler-rt/Makefile

index 0ddcdd8aacafe1fd02eee52c88d26483a83dc9c8..55642a6f0cc53f18984500ab275a177f636abef5 100644 (file)
@@ -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 \