@@ -356,9 +356,6 @@ def build(self, host_target):
356
356
357
357
if self .args .build_embedded_stdlib and system () == "Darwin" :
358
358
# Ask for Mach-O cross-compilation builtins (for Embedded Swift)
359
- llvm_cmake_options .define (
360
- 'COMPILER_RT_FORCE_BUILD_BAREMETAL_MACHO_BUILTINS_ARCHS:STRING' ,
361
- 'armv6 armv6m armv7 armv7m armv7em' )
362
359
llvm_cmake_options .define (
363
360
f'BUILTINS_{ builtins_runtimes_target_for_darwin } _'
364
361
'COMPILER_RT_FORCE_BUILD_BAREMETAL_MACHO_BUILTINS_ARCHS:'
@@ -369,28 +366,13 @@ def build(self, host_target):
369
366
370
367
if self .args .build_compiler_rt and \
371
368
not self .is_cross_compile_target (host_target ):
372
- if self .args .llvm_build_compiler_rt_with_use_runtimes :
373
- llvm_enable_runtimes .append ('compiler-rt' )
374
- # This accounts for previous incremental runs that may have set
375
- # those in the LLVM CMakeCache.txt
376
- llvm_cmake_options .undefine ('LLVM_TOOL_COMPILER_RT_BUILD' )
377
- llvm_cmake_options .undefine ('LLVM_BUILD_EXTERNAL_COMPILER_RT' )
378
- else :
379
- # No need to unset anything,
380
- # since we set LLVM_ENABLE_RUNTIMES explicitly
381
- llvm_enable_projects .append ('compiler-rt' )
382
- llvm_cmake_options .define (
383
- 'LLVM_TOOL_COMPILER_RT_BUILD:BOOL' , 'TRUE' )
384
- llvm_cmake_options .define (
385
- 'LLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL' , 'TRUE' )
386
- else :
387
- if not self .args .llvm_build_compiler_rt_with_use_runtimes :
388
- # No need to unset anything,
389
- # since we set LLVM_ENABLE_RUNTIMES explicitly
390
- llvm_cmake_options .define (
391
- 'LLVM_TOOL_COMPILER_RT_BUILD:BOOL' , 'FALSE' )
392
- llvm_cmake_options .define (
393
- 'LLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL' , 'FALSE' )
369
+ llvm_enable_runtimes .append ('compiler-rt' )
370
+
371
+ # This accounts for previous incremental runs using the old
372
+ # way of build compiler_rt that may have set
373
+ # those in the LLVM CMakeCache.txt
374
+ llvm_cmake_options .undefine ('LLVM_TOOL_COMPILER_RT_BUILD' )
375
+ llvm_cmake_options .undefine ('LLVM_BUILD_EXTERNAL_COMPILER_RT' )
394
376
395
377
if self .args .build_clang_tools_extra :
396
378
llvm_enable_projects .append ('clang-tools-extra' )
@@ -572,10 +554,9 @@ def install(self, host_target):
572
554
self .args .llvm_install_components != 'all' :
573
555
install_targets = []
574
556
components = self .args .llvm_install_components .split (';' )
575
- if self .args .llvm_build_compiler_rt_with_use_runtimes and \
576
- 'compiler-rt' in components :
557
+ if 'compiler-rt' in components :
577
558
# This is a courtesy fallback to avoid breaking downstream presets
578
- # we are not aware of
559
+ # that are still using the old compiler-rt install component
579
560
components .remove ('compiler-rt' )
580
561
components .append ('builtins' )
581
562
components .append ('runtimes' )
@@ -586,7 +567,7 @@ def install(self, host_target):
586
567
for component in components :
587
568
if self .is_cross_compile_target (host_target ) \
588
569
or not self .args .build_compiler_rt :
589
- if component in ['compiler-rt' , ' builtins' , 'runtimes' ]:
570
+ if component in ['builtins' , 'runtimes' ]:
590
571
continue
591
572
install_targets .append ('install-{}' .format (component ))
592
573
0 commit comments