]> granicus.if.org Git - clang/commitdiff
Only build ARM-specific runtimes if ARM is enabled
authorTim Northover <tnorthover@apple.com>
Wed, 11 Dec 2013 12:01:21 +0000 (12:01 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 11 Dec 2013 12:01:21 +0000 (12:01 +0000)
The soft-float variants of (embedded) libclang_rt only make sense for ARM, so
there's no point in trying to build them if the compiler is only capable of
targeting x86.

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

runtime/compiler-rt/Makefile

index 49eb3ada2beb336bfb555665e301f230816f1a4c..f081e8a92e28491a6ad1f99364be9e82efe6ed90 100644 (file)
@@ -84,8 +84,13 @@ RuntimeLibrary.darwin.Configs := \
        asan_osx_dynamic.dylib \
        profile_osx.a profile_ios.a \
        ubsan_osx.a
+
 RuntimeLibrary.darwin_embedded.Configs := \
-       soft_static.a hard_static.a soft_pic.a hard_pic.a
+       hard_static.a hard_pic.a
+ifneq (,$(findstring ARM,$(TARGETS_TO_BUILD)))
+RuntimeLibrary.darwin_embedded.Configs += \
+       soft_static.a soft_pic.a
+endif
 
 # Support building compiler-rt with relocatable SDKs.
 #