From c9dd46748e1ca90f11414a8cf5fbdfa9e3d0a8b4 Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Wed, 11 Dec 2013 12:01:21 +0000 Subject: [PATCH] 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 --- runtime/compiler-rt/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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. # -- 2.40.0