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 7038ec5 commit 3c7afffCopy full SHA for 3c7afff
sycl/source/CMakeLists.txt
@@ -210,8 +210,11 @@ if (MSVC)
210
set(SYCL_EXTRA_OPTS "/MD")
211
endif()
212
213
-# See https://github.com/llvm/llvm-project/issues/58295.
214
-set_source_files_properties(device_selector.cpp PROPERTIES COMPILE_FLAGS -fsemantic-interposition)
+check_cxx_compiler_flag(-fsemantic-interposition HAS_SEMANTIC_INTERPOSITION_FLAG)
+if (HAS_SEMANTIC_INTERPOSITION_FLAG)
215
+ # See https://github.com/llvm/llvm-project/issues/58295.
216
+ set_source_files_properties(device_selector.cpp PROPERTIES COMPILE_FLAGS -fsemantic-interposition)
217
+endif()
218
219
if (WIN32)
220
set(LIB_NAME "sycl${SYCL_MAJOR_VERSION}")
0 commit comments