[compiler-rt] 7cfd32a - [compiler-rt][MSVC] Conditionally remove emupac.cpp for msvc (#149823)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 22 05:54:40 PDT 2025
Author: Zack Johnson
Date: 2025-07-22T08:54:36-04:00
New Revision: 7cfd32a1d5f3bee1de58129eecac51e074d19dad
URL: https://github.com/llvm/llvm-project/commit/7cfd32a1d5f3bee1de58129eecac51e074d19dad
DIFF: https://github.com/llvm/llvm-project/commit/7cfd32a1d5f3bee1de58129eecac51e074d19dad.diff
LOG: [compiler-rt][MSVC] Conditionally remove emupac.cpp for msvc (#149823)
#148094 introduces logic for emulated PAC, which utilizes language
extensions not available on MSVC.
Added:
Modified:
compiler-rt/lib/builtins/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt
index 3ab92403d4168..64d36c5e2d57d 100644
--- a/compiler-rt/lib/builtins/CMakeLists.txt
+++ b/compiler-rt/lib/builtins/CMakeLists.txt
@@ -591,10 +591,14 @@ set(aarch64_SOURCES
${GENERIC_TF_SOURCES}
${GENERIC_SOURCES}
cpu_model/aarch64.c
- aarch64/emupac.cpp
aarch64/fp_mode.c
)
+# Append sources specific to AArch64 targets that aren't supported by MSVC.
+if(NOT MSVC)
+ list(APPEND aarch64_SOURCES aarch64/emupac.cpp)
+endif()
+
set(COMPILER_RT_AARCH64_FMV_USES_GLOBAL_CONSTRUCTOR NOT(FUCHSIA OR APPLE))
if (COMPILER_RT_HAS_AARCH64_SME)
More information about the llvm-commits
mailing list