[MLIR] reverse int8 type's printing logic (#69361)
[llvm-project.git] / libc / test / IntegrationTest / CMakeLists.txt
blob3d32b6cb53be93c89dd0119b164fe6668a0aa959
1 if(LIBC_GPU_TARGET_ARCHITECTURE_IS_AMDGPU)
2   set(TEST_COMPILE_FLAGS
3     -mcpu=${LIBC_GPU_TARGET_ARCHITECTURE}
4     -emit-llvm # AMDGPU's intermediate object file format is bitcode.
5     --target=${LIBC_GPU_TARGET_TRIPLE}
6     -mcode-object-version=${LIBC_GPU_CODE_OBJECT_VERSION} # Manually set the ABI.
7   )
8 elseif(LIBC_GPU_TARGET_ARCHITECTURE_IS_NVPTX)
9   set(TEST_COMPILE_FLAGS
10     -march=${LIBC_GPU_TARGET_ARCHITECTURE}
11     --target=${LIBC_GPU_TARGET_TRIPLE}
12     --cuda-path=${LIBC_CUDA_ROOT}
13   )
14 endif()
16 add_object_library(
17   test
18   SRCS
19     test.cpp
20   COMPILE_OPTIONS
21     ${TEST_COMPILE_FLAGS}
22   HDRS
23     test.h
24   DEPENDS
25     libc.src.__support.OSUtil.osutil
26   NO_GPU_BUNDLE # Compile this file directly without special GPU handling.