Skip to content

Commit bc5bed6

Browse files
ndrewhgithub-actions[bot]
authored andcommitted
Automerge: [cmake] LLVM_BUILTINS_TARGET='default' should bootstrap builtins without compiler-rt (#171536)
2 parents 51751bf + 9848c03 commit bc5bed6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/runtimes/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ function(get_compiler_rt_path path)
3434
return()
3535
endif()
3636
endforeach()
37+
38+
# If LLVM_BUILTIN_TARGETS is specified, we still need
39+
# to locate the compiler-rt runtime to be able to build builtins.
40+
# This supports bootstrapping builtins without compiler-rt.
41+
if (LLVM_BUILTIN_TARGETS)
42+
set(${path} "${CMAKE_CURRENT_SOURCE_DIR}/../../compiler-rt" PARENT_SCOPE)
43+
endif()
3744
endfunction()
3845

3946
include(LLVMExternalProjectUtils)

0 commit comments

Comments
 (0)