diff --git a/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt b/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt index 55c7d665e639f..f79cd235fdca2 100644 --- a/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt +++ b/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt @@ -78,6 +78,7 @@ set(SANITIZER_TEST_CFLAGS_COMMON -O2 -Werror=sign-compare -Wno-gnu-zero-variadic-macro-arguments + -std=c++17 ) set(SANITIZER_TEST_LINK_FLAGS_COMMON