Skip to content

Commit d0f4c61

Browse files
committed
[sanitizer-common] sanitizer_common unit tests need -std=c++17
Currently, sanitizer_array_ref_test requires -std=c++17 or newer, due to is_trivially_copyable_v. This adds -std=c++17 to the list of CFLAGS used for compiling sanitizer_common tests.
1 parent 68c3b53 commit d0f4c61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ set(SANITIZER_TEST_CFLAGS_COMMON
7878
-O2
7979
-Werror=sign-compare
8080
-Wno-gnu-zero-variadic-macro-arguments
81+
-std=c++17
8182
)
8283

8384
set(SANITIZER_TEST_LINK_FLAGS_COMMON

0 commit comments

Comments
 (0)