Skip to content

Commit

Permalink
build: suppress deprecation warnings for a custom host compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
densamoilov committed Nov 2, 2021
1 parent eb405a8 commit 08fa4ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/host_compiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ if(DNNL_DPCPP_HOST_COMPILER MATCHES "g\\+\\+")
append(DPCPP_HOST_COMPILER_OPTS "${CMAKE_CXX_FLAGS_DEBUG}")
endif()

# When a custom host compiler is used some deprecation warnings come
# from sycl.hpp header. Suppress the warnings for now.
append(DPCPP_HOST_COMPILER_OPTS "-Wno-deprecated-declarations")

# SYCL headers contain some comments that trigger warning with GNU compiler
append(DPCPP_HOST_COMPILER_OPTS "-Wno-comment")

Expand Down

0 comments on commit 08fa4ed

Please sign in to comment.