Skip to content

Commit 66fc0a1

Browse files
zacklj89mahesh-attarde
authored andcommitted
[compiler-rt][MSVC] Conditionally remove emupac.cpp for msvc (llvm#149823)
llvm#148094 introduces logic for emulated PAC, which utilizes language extensions not available on MSVC.
1 parent 544e481 commit 66fc0a1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler-rt/lib/builtins/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,14 @@ set(aarch64_SOURCES
591591
${GENERIC_TF_SOURCES}
592592
${GENERIC_SOURCES}
593593
cpu_model/aarch64.c
594-
aarch64/emupac.cpp
595594
aarch64/fp_mode.c
596595
)
597596

597+
# Append sources specific to AArch64 targets that aren't supported by MSVC.
598+
if(NOT MSVC)
599+
list(APPEND aarch64_SOURCES aarch64/emupac.cpp)
600+
endif()
601+
598602
set(COMPILER_RT_AARCH64_FMV_USES_GLOBAL_CONSTRUCTOR NOT(FUCHSIA OR APPLE))
599603

600604
if (COMPILER_RT_HAS_AARCH64_SME)

0 commit comments

Comments
 (0)