[compiler-rt] 54a8524 - [compiler-rt] Don't error out on missing builtins when builting builtins themselves
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Mon May 18 01:29:07 PDT 2020
Author: Martin Storsjö
Date: 2020-05-18T11:28:44+03:00
New Revision: 54a85240709ecbcab329fb39af8ba5d6cd565305
URL: https://github.com/llvm/llvm-project/commit/54a85240709ecbcab329fb39af8ba5d6cd565305
DIFF: https://github.com/llvm/llvm-project/commit/54a85240709ecbcab329fb39af8ba5d6cd565305.diff
LOG: [compiler-rt] Don't error out on missing builtins when builting builtins themselves
This fixes bootstrapping the builtins when no previous version of
them exists after 2fe66bdb2e5fb556e15d4a07158e89ec007c587b.
Also fix a whitespace issue in that commit.
Added:
Modified:
compiler-rt/cmake/Modules/AddCompilerRT.cmake
Removed:
################################################################################
diff --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
index 1dde396b1f69..dab55707338a 100644
--- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake
+++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
@@ -234,10 +234,11 @@ function(add_compiler_rt_runtime name type)
set_output_name(output_name_${libname} ${name} ${arch})
endif()
endif()
- if(COMPILER_RT_USE_BUILTINS_LIBRARY AND NOT type STREQUAL "OBJECT")
+ if(COMPILER_RT_USE_BUILTINS_LIBRARY AND NOT type STREQUAL "OBJECT" AND
+ NOT name STREQUAL "clang_rt.builtins")
get_compiler_rt_target(${arch} target)
find_compiler_rt_library(builtins ${target} builtins_${libname})
- if(builtins_${libname} STREQUAL "NOTFOUND")
+ if(builtins_${libname} STREQUAL "NOTFOUND")
message(FATAL_ERROR "Cannot find builtins library for the target architecture")
endif()
endif()
More information about the llvm-commits
mailing list