Reverts llvm/llvm-project#95419 and Reland #95358. This PR is full of temporal fixes. After a discussion with @lntue, it is better to avoid further changes to the cmake infrastructure for now as a rework to the cmake utilities will be landed in the future.
17 lines
310 B
CMake
17 lines
310 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.src.__support.OSUtil.osutil
|
|
${arch_specific_deps}
|
|
)
|