[libc-commits] [libc] [libc] Fix math tests for macos arm64. (PR #100060)
via libc-commits
libc-commits at lists.llvm.org
Tue Jul 23 03:24:21 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)
----------------
overmighty wrote:
Is this because of https://github.com/llvm/llvm-project/blob/c1b70fa5bfea973d4141e27cf9668e9325609e19/libc/cmake/modules/LLVMLibCArchitectures.cmake#L37-L38? Should that be fixed instead?
https://github.com/llvm/llvm-project/pull/100060
More information about the libc-commits
mailing list