Skip to content

Commit 235dff7

Browse files
committed
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
1 parent 73170f8 commit 235dff7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

clang/runtime/compiler-rt/Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,13 @@ RuntimeLibrary.darwin.Configs := \
8484
asan_osx_dynamic.dylib \
8585
profile_osx.a profile_ios.a \
8686
ubsan_osx.a
87+
8788
RuntimeLibrary.darwin_embedded.Configs := \
88-
soft_static.a hard_static.a soft_pic.a hard_pic.a
89+
hard_static.a hard_pic.a
90+
ifneq (,$(findstring ARM,$(TARGETS_TO_BUILD)))
91+
RuntimeLibrary.darwin_embedded.Configs += \
92+
soft_static.a soft_pic.a
93+
endif
8994

9095
# Support building compiler-rt with relocatable SDKs.
9196
#

0 commit comments

Comments
 (0)