[compiler-rt] [compiler-rt][cmake] filter libc-backed builtins superseded by assembly (PR #213481)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 1 12:23:20 PDT 2026
https://github.com/hulxv created https://github.com/llvm/llvm-project/pull/213481
apply https://github.com/llvm/llvm-project/pull/209900#discussion_r3615454574
Part of #197824
>From 7c64aeab216988f823a35022f85805a1618c362b Mon Sep 17 00:00:00 2001
From: hulxv <hulxxv at gmail.com>
Date: Sat, 1 Aug 2026 22:21:26 +0300
Subject: [PATCH] [compiler-rt][cmake] filter libc-backed builtins superseded
by assembly
---
compiler-rt/cmake/Modules/CompilerRTUtils.cmake | 2 ++
1 file changed, 2 insertions(+)
diff --git a/compiler-rt/cmake/Modules/CompilerRTUtils.cmake b/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
index e4e3cfb9a2d99..7c0fe60231320 100644
--- a/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
+++ b/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
@@ -487,6 +487,8 @@ function(filter_builtin_sources inout_var name)
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_cname}")
message(STATUS "For ${name} builtins preferring ${_file} to ${_cname}")
list(REMOVE_ITEM intermediate ${_cname})
+ string(REGEX REPLACE "\\.c$" ".cpp" _cppname "${_cname}")
+ list(REMOVE_ITEM intermediate ${_cppname})
endif()
endforeach()
endif()
More information about the llvm-commits
mailing list