Files
llvm-project/libc/test/IntegrationTest/CMakeLists.txt
Marcell Leleszi 3d0a3674d9 [libc] Make errno asserts noop on gpu targets (#166606)
This patch defines errno unit and integration test asserts as noop on
GPU targets. Checking for errnos is tests has caused build breakages in
previous patches.
2025-11-05 11:17:13 -08:00

20 lines
425 B
CMake

set(arch_specific_deps)
if(LIBC_TARGET_ARCHITECTURE_IS_AARCH64)
set(arch_specific_deps libc.src.sys.auxv.getauxval)
endif()
add_object_library(
test
SRCS
test.cpp
COMPILE_OPTIONS
${TEST_COMPILE_FLAGS}
HDRS
test.h
DEPENDS
libc.hdr.stdint_proxy
libc.src.__support.OSUtil.osutil
libc.src.__support.CPP.atomic
libc.src.__support.macros.properties.architectures
${arch_specific_deps}
)