We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f3801b commit eadce94Copy full SHA for eadce94
sycl/source/CMakeLists.txt
@@ -90,6 +90,12 @@ function(add_sycl_rt_library LIB_NAME)
90
VERSION ${SYCL_VERSION_STRING}
91
SOVERSION ${SYCL_MAJOR_VERSION})
92
93
+ check_cxx_compiler_flag(-Winstantiation-after-specialization
94
+ HAS_INST_AFTER_SPEC)
95
+ if (HAS_INST_AFTER_SPEC)
96
+ target_compile_options(${LIB_OBJ_NAME} PRIVATE
97
+ -Winstantiation-after-specialization)
98
+ endif()
99
endfunction(add_sycl_rt_library)
100
101
set(SYCL_SOURCES
0 commit comments