File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change
1
+ include (CheckCXXCompilerFlag )
1
2
set (obj_binary_dir "${CMAKE_LIBRARY_OUTPUT_DIRECTORY} " )
2
3
set (obj-new-offload_binary_dir "${CMAKE_LIBRARY_OUTPUT_DIRECTORY} " )
3
4
if (MSVC )
@@ -344,6 +345,7 @@ if("native_cpu" IN_LIST SYCL_ENABLE_BACKENDS)
344
345
COMPONENT libsycldevice )
345
346
endif ()
346
347
348
+ check_cxx_compiler_flag (-Wno-invalid-noreturn HAS_NO_INVALID_NORETURN_WARN_FLAG )
347
349
# Add all device libraries for each filetype except for the Intel math function
348
350
# ones.
349
351
add_devicelibs (libsycl-itt-stubs
@@ -358,7 +360,9 @@ add_devicelibs(libsycl-itt-user-wrappers
358
360
359
361
add_devicelibs (libsycl-crt
360
362
SRC crt_wrapper.cpp
361
- DEPENDENCIES ${crt_obj_deps} )
363
+ DEPENDENCIES ${crt_obj_deps}
364
+ EXTRA_OPTS $< $< BOOL:${HAS_NO_INVALID_NORETURN_WARN_FLAG} > :-Wno-invalid-noreturn> )
365
+
362
366
add_devicelibs (libsycl-complex
363
367
SRC complex_wrapper.cpp
364
368
DEPENDENCIES ${complex_obj_deps} )
You can’t perform that action at this time.
0 commit comments