Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sycl/include/sycl/detail/defines_elementary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#endif

#ifndef __SYCL_DEPRECATED
#if !defined(SYCL2020_DISABLE_DEPRECATION_WARNINGS)
#if !defined(__SYCL_DISABLE_DEPRECATION_WARNINGS)
#define __SYCL_DEPRECATED(message) [[deprecated(message)]]
#else // SYCL_DISABLE_DEPRECATION_WARNINGS
#define __SYCL_DEPRECATED(message)
Expand Down
1 change: 1 addition & 0 deletions sycl/source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function(add_sycl_rt_library LIB_NAME LIB_OBJ_NAME)
__DPCPP_ENABLE_UNFINISHED_KHR_EXTENSIONS
__SYCL_INTERNAL_API
SYCL2020_DISABLE_DEPRECATION_WARNINGS
__SYCL_DISABLE_DEPRECATION_WARNINGS
$<$<BOOL:${MSVC}>:__SYCL_BUILD_SYCL_DLL>
)

Expand Down
7 changes: 6 additions & 1 deletion sycl/tools/sycl-ls/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ if (WIN32 AND "${build_type_lower}" MATCHES "debug")
endif()

# Disable aspect::image & deprecation warnings.
target_compile_definitions(sycl-ls PRIVATE SYCL_DISABLE_IMAGE_ASPECT_WARNING SYCL2020_DISABLE_DEPRECATION_WARNINGS SYCL_DISABLE_FSYCL_SYCLHPP_WARNING)
target_compile_definitions(sycl-ls
PRIVATE
__SYCL_DISABLE_DEPRECATION_WARNINGS
SYCL_DISABLE_IMAGE_ASPECT_WARNING
SYCL2020_DISABLE_DEPRECATION_WARNINGS
SYCL_DISABLE_FSYCL_SYCLHPP_WARNING)

target_link_libraries(sycl-ls
PRIVATE
Expand Down
5 changes: 4 additions & 1 deletion sycl/unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ foreach(flag_var
string(REGEX REPLACE "/MT" "/MD" ${flag_var} "${${flag_var}}")
endforeach()

add_compile_definitions(SYCL2020_DISABLE_DEPRECATION_WARNINGS SYCL_DISABLE_FSYCL_SYCLHPP_WARNING)
add_compile_definitions(
__SYCL_DISABLE_DEPRECATION_WARNINGS
SYCL2020_DISABLE_DEPRECATION_WARNINGS
SYCL_DISABLE_FSYCL_SYCLHPP_WARNING)

# suppress warnings which came from Google Test sources
if (CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG)
Expand Down
Loading