File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ set(TEST_INPUT_LINKED_OBJS)
10
10
macro (add_test_input_binary name input output )
11
11
add_custom_command (
12
12
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
14
14
${ARGN} "${CMAKE_CURRENT_SOURCE_DIR} /${input} " -o "${output} "
15
15
VERBATIM
16
16
DEPENDS clang lld "${input} " )
@@ -27,7 +27,7 @@ macro(add_test_input_bitcode name input output)
27
27
add_custom_command (
28
28
OUTPUT "${output} "
29
29
COMMAND "$<TARGET_FILE:clang>" -c -emit-llvm -target amdgcn-amd-amdhsa
30
- -mcpu=gfx900 -nogpulib
30
+ -mcpu=gfx900 -nogpulib -nogpuinc
31
31
${ARGN} "${CMAKE_CURRENT_SOURCE_DIR} /${input} "
32
32
-o "${output} "
33
33
VERBATIM
@@ -45,7 +45,7 @@ macro(add_test_input_bitcode_bundle name input output)
45
45
add_custom_command (
46
46
OUTPUT "${output} "
47
47
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
49
49
-o "${output} "
50
50
VERBATIM
51
51
DEPENDS clang lld "${input} " )
@@ -62,7 +62,7 @@ macro(add_test_input_object_file_bundle name input output)
62
62
add_custom_command (
63
63
OUTPUT "${output} "
64
64
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
66
66
-o "${output} "
67
67
VERBATIM
68
68
DEPENDS clang lld "${input} " )
You can’t perform that action at this time.
0 commit comments