diff --git a/compiler-rt/lib/scudo/standalone/CMakeLists.txt b/compiler-rt/lib/scudo/standalone/CMakeLists.txt --- a/compiler-rt/lib/scudo/standalone/CMakeLists.txt +++ b/compiler-rt/lib/scudo/standalone/CMakeLists.txt @@ -11,6 +11,7 @@ -Werror=conversion -Wall -g + -std=c++17 # For consistency with unit-tests only. -nostdinc++) # Remove -stdlib= which is unused when passing -nostdinc++. diff --git a/compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt b/compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt --- a/compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt +++ b/compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt @@ -14,6 +14,7 @@ -DGTEST_HAS_RTTI=0 -DSCUDO_DEBUG=1 -g + -std=c++17 # Required for "new" for "alignas" types. # Extra flags for the C++ tests # TODO(kostyak): find a way to make -fsized-deallocation work -Wno-mismatched-new-delete)