Skip to content

Commit ab69ac8

Browse files
authored
[CMake] Disable STL-internal assertions in device code (#7236)
SYCL_DISABLE_STL_ASSERTIONS=ON Unless we maintain our own STL for SYCL we can't know the visibility of the internal assertion mechanism of libstdc++ and friends. This caused random-looking build failures in device code for which we have no reliable method of avoision when I adopted gcc12.2.
1 parent 8d2b8e2 commit ab69ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set(CMAKE_CXX_STANDARD 17)
66
set(CMAKE_CXX_STANDARD_REQUIRED ON)
77
set(CMAKE_CXX_EXTENSIONS OFF)
88
option(SYCL_ENABLE_WERROR "Treat all warnings as errors in SYCL project" OFF)
9-
option(SYCL_DISABLE_STL_ASSERTIONS "Disable assertions in STL containers" OFF)
9+
option(SYCL_DISABLE_STL_ASSERTIONS "Disable assertions in STL containers" ON)
1010
option(SYCL_ADD_DEV_VERSION_POSTFIX "Adds -V postfix to version string" ON)
1111
option(SYCL_ENABLE_COVERAGE "Enables code coverage for runtime and unit tests" OFF)
1212

0 commit comments

Comments
 (0)