[libc-commits] [libc] [libc] Fix math tests for macos arm64. (PR #100060)

via libc-commits libc-commits at lists.llvm.org
Tue Jul 23 07:11:05 PDT 2024


================
@@ -331,7 +331,12 @@ if(NOT LIBC_TARGET_OS_IS_GPU)
     include(${LIBC_SOURCE_DIR}/../compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake)
 
     # scudo distinguishes riscv32 and riscv64, so we need to translate the architecture
-    set(LIBC_TARGET_ARCHITECTURE_FOR_SCUDO ${LIBC_TARGET_ARCHITECTURE})
+    # set(LIBC_TARGET_ARCHITECTURE_FOR_SCUDO ${LIBC_TARGET_ARCHITECTURE})
+    if (LIBC_TARGET_OS_IS_DARWIN AND (LIBC_TARGET_ARCHITECTURE STREQUAL "arm"))
+      set(LIBC_TARGET_ARCHITECTURE_FOR_SCUDO arm64)
----------------
lntue wrote:

Cleaning that up would be quite invasive and too big for this PR.  I'd leave that for the follow up issue / PR.

https://github.com/llvm/llvm-project/pull/100060


More information about the libc-commits mailing list