Author: tnorthover
Date: Wed Dec 11 06:01:21 2013
New Revision: 197033

URL: http://llvm.org/viewvc/llvm-project?rev=197033&view=rev
Log:
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.

Modified:
    cfe/trunk/runtime/compiler-rt/Makefile

Modified: cfe/trunk/runtime/compiler-rt/Makefile
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/runtime/compiler-rt/Makefile?rev=197033&r1=197032&r2=197033&view=diff
==============================================================================
--- cfe/trunk/runtime/compiler-rt/Makefile (original)
+++ cfe/trunk/runtime/compiler-rt/Makefile Wed Dec 11 06:01:21 2013
@@ -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.
 #


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to