[libc-commits] [libc] [libc] Fix math tests for macos arm64. (PR #100060)
via libc-commits
libc-commits at lists.llvm.org
Tue Jul 23 06:52: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:
It is because of that. Let me try to see if correctly fixing that would be too big for this PR or not.
https://github.com/llvm/llvm-project/pull/100060
More information about the libc-commits
mailing list