Only build ARM-specific runtimes if ARM is enabled

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.

llvm-svn: 197033
This commit is contained in:
Tim Northover 2013-12-11 12:01:21 +00:00
parent 73170f8488
commit 235dff7b63
1 changed files with 6 additions and 1 deletions

View 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.
#