diff options
author | Tim Northover <tnorthover@apple.com> | 2013-12-11 12:01:21 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2013-12-11 12:01:21 +0000 |
commit | c9dd46748e1ca90f11414a8cf5fbdfa9e3d0a8b4 (patch) | |
tree | 2d04a08d1b73e1d7b37a51e5159de7d39dc23a5a | |
parent | 64d271941379661f2c55be4ead57d4c5126a978f (diff) | |
download | clang-c9dd46748e1ca90f11414a8cf5fbdfa9e3d0a8b4.tar.gz clang-c9dd46748e1ca90f11414a8cf5fbdfa9e3d0a8b4.tar.bz2 clang-c9dd46748e1ca90f11414a8cf5fbdfa9e3d0a8b4.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197033 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | runtime/compiler-rt/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/compiler-rt/Makefile b/runtime/compiler-rt/Makefile index 49eb3ada2b..f081e8a92e 100644 --- a/runtime/compiler-rt/Makefile +++ b/runtime/compiler-rt/Makefile @@ -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. # |