Skip to content

Commit f0e3ea5

Browse files
committed
build-llvm.py: Use all possible compiler and linker
1 parent 1eae53d commit f0e3ea5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

build-llvm.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,7 @@ def cc_ld_cmake_defines(args, dirs, env_vars, stage):
622622
llvm_tblgen = get_stage1_binary("llvm-tblgen", dirs)
623623
ranlib = get_stage1_binary("llvm-ranlib", dirs)
624624

625-
# Use llvm-ar for non-bootstrap stages builds to avoid errors with bfd plugin
626-
# bfd plugin: LLVM gold plugin has failed to create LTO module: Unknown attribute kind (60) (Producer: 'LLVM9.0.0svn' Reader: 'LLVM 8.0.0')
627-
if ar and not bootstrap_stage(args, stage):
625+
if ar:
628626
defines['CMAKE_AR'] = ar
629627

630628
# The C compiler to use
@@ -643,8 +641,7 @@ def cc_ld_cmake_defines(args, dirs, env_vars, stage):
643641
if llvm_tblgen:
644642
defines['LLVM_TABLEGEN'] = llvm_tblgen
645643

646-
# Use llvm-ranlib for non-bootstrap stages
647-
if ranlib and not bootstrap_stage(args, stage):
644+
if ranlib:
648645
defines['CMAKE_RANLIB'] = ranlib
649646

650647
return defines

0 commit comments

Comments
 (0)