File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ include (CheckCXXCompilerFlag )
12set (obj_binary_dir "${CMAKE_LIBRARY_OUTPUT_DIRECTORY } " )
23set (obj-new-offload_binary_dir "${CMAKE_LIBRARY_OUTPUT_DIRECTORY } " )
34if (MSVC )
@@ -344,6 +345,7 @@ if("native_cpu" IN_LIST SYCL_ENABLE_BACKENDS)
344345 COMPONENT libsycldevice)
345346endif ()
346347
348+ check_cxx_compiler_flag (-Wno-invalid-noreturn HAS_NO_INVALID_NORETURN_WARN_FLAG )
347349# Add all device libraries for each filetype except for the Intel math function
348350# ones.
349351add_devicelibs (libsycl-itt-stubs
@@ -358,7 +360,9 @@ add_devicelibs(libsycl-itt-user-wrappers
358360
359361add_devicelibs (libsycl-crt
360362 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+
362366add_devicelibs (libsycl-complex
363367 SRC complex_wrapper.cpp
364368 DEPENDENCIES ${complex_obj_deps} )
You can’t perform that action at this time.
0 commit comments