[compiler-rt] [compiler-rt][MSVC] Update check to include clang-cl (PR #150108)
Zack Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 22 13:48:26 PDT 2025
https://github.com/zacklj89 created https://github.com/llvm/llvm-project/pull/150108
Follow up to #149823 to include `clang-cl`
>From d091e4dfab6c05730c29070377d7438693f9f742 Mon Sep 17 00:00:00 2001
From: Zack Johnson <zajohnson at microsoft.com>
Date: Tue, 22 Jul 2025 16:46:08 -0400
Subject: [PATCH] [compiler-rt][MSVC] Update check to include clang-cl
---
compiler-rt/lib/builtins/CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt
index eb2e7664152b8..1dadb6a810efb 100644
--- a/compiler-rt/lib/builtins/CMakeLists.txt
+++ b/compiler-rt/lib/builtins/CMakeLists.txt
@@ -594,8 +594,8 @@ set(aarch64_SOURCES
aarch64/fp_mode.c
)
-# Append sources specific to AArch64 targets that aren't supported by MSVC.
-if(NOT MSVC)
+# Append sources specific to AArch64 targets that aren't supported by cl.exe
+if(CLANG_CL OR NOT MSVC)
list(APPEND aarch64_SOURCES
aarch64/emupac.cpp
)
More information about the llvm-commits
mailing list