Skip to content

Commit 739d1b4

Browse files
authored
[Comgr] Add -nogpuinc to tests (llvm#1062) (llvm#1123)
2 parents d1c4bef + 278087c commit 739d1b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

amd/comgr/test/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set(TEST_INPUT_LINKED_OBJS)
1010
macro(add_test_input_binary name input output)
1111
add_custom_command(
1212
OUTPUT "${output}"
13-
COMMAND "$<TARGET_FILE:clang>" --target=amdgcn-amd-amdhsa -mcpu=gfx900 -nogpulib
13+
COMMAND "$<TARGET_FILE:clang>" --target=amdgcn-amd-amdhsa -mcpu=gfx900 -nogpulib -nogpuinc
1414
${ARGN} "${CMAKE_CURRENT_SOURCE_DIR}/${input}" -o "${output}"
1515
VERBATIM
1616
DEPENDS clang lld "${input}")
@@ -27,7 +27,7 @@ macro(add_test_input_bitcode name input output)
2727
add_custom_command(
2828
OUTPUT "${output}"
2929
COMMAND "$<TARGET_FILE:clang>" -c -emit-llvm -target amdgcn-amd-amdhsa
30-
-mcpu=gfx900 -nogpulib
30+
-mcpu=gfx900 -nogpulib -nogpuinc
3131
${ARGN} "${CMAKE_CURRENT_SOURCE_DIR}/${input}"
3232
-o "${output}"
3333
VERBATIM
@@ -45,7 +45,7 @@ macro(add_test_input_bitcode_bundle name input output)
4545
add_custom_command(
4646
OUTPUT "${output}"
4747
COMMAND "$<TARGET_FILE:clang>" -c --offload-arch=gfx900 -emit-llvm -fgpu-rdc
48-
--gpu-bundle-output ${ARGN} "${CMAKE_CURRENT_SOURCE_DIR}/${input}" -nogpulib
48+
--gpu-bundle-output ${ARGN} "${CMAKE_CURRENT_SOURCE_DIR}/${input}" -nogpulib -nogpuinc
4949
-o "${output}"
5050
VERBATIM
5151
DEPENDS clang lld "${input}")
@@ -62,7 +62,7 @@ macro(add_test_input_object_file_bundle name input output)
6262
add_custom_command(
6363
OUTPUT "${output}"
6464
COMMAND "$<TARGET_FILE:clang>" -c --offload-arch=gfx900 --gpu-bundle-output
65-
--offload-device-only ${ARGN} "${CMAKE_CURRENT_SOURCE_DIR}/${input}" -nogpulib
65+
--offload-device-only ${ARGN} "${CMAKE_CURRENT_SOURCE_DIR}/${input}" -nogpulib -nogpuinc
6666
-o "${output}"
6767
VERBATIM
6868
DEPENDS clang lld "${input}")

0 commit comments

Comments
 (0)