[compiler-rt] [compiler-rt][MSVC] Conditionally remove emupac.cpp for msvc (PR #149823)
Zack Johnson via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 21 07:20:55 PDT 2025
https://github.com/zacklj89 created https://github.com/llvm/llvm-project/pull/149823
#148094 introduces logic for emulated PAC, which utilizes language extensions not available on MSVC.
>From e47af7c7dd2b0da3e6046fcf9b793ac776d46d42 Mon Sep 17 00:00:00 2001
From: Zack Johnson <zajohnson at microsoft.com>
Date: Mon, 21 Jul 2025 10:13:15 -0400
Subject: [PATCH] [compiler-rt][MSVC] Conditionally remove emupac.cpp for msvc
---
compiler-rt/lib/builtins/CMakeLists.txt | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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