Skip to content

Commit

Permalink
Use C++17 in GN configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlstrom-g committed Oct 19, 2023
1 parent e8aabbf commit bc21ad0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion starboard/android/shared/platform_configuration/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ config("platform_configuration") {
defines += [ "THREAD_SANITIZER" ]
}

cflags_cc = [ "-std=c++14" ]
cflags_cc = [ "-std=c++17" ]
cflags += [
# libwebp uses the cpufeatures library to detect ARM NEON support
"-I${android_ndk_path}/sources/android/cpufeatures",
Expand Down
2 changes: 1 addition & 1 deletion starboard/build/config/win/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ config("common") {
]
cflags += [
"/EHsc",
"/std:c++14",
"/std:c++17",
]

# msvs_debug/_devel/etc
Expand Down
2 changes: 1 addition & 1 deletion starboard/linux/shared/platform_configuration/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ config("compiler_flags") {
# C11 features that are not supported on some platforms' compilers.
"-std=c99",
]
cflags_cc = [ "-std=gnu++14" ]
cflags_cc = [ "-std=gnu++17" ]

if (use_asan) {
cflags += [
Expand Down

0 comments on commit bc21ad0

Please sign in to comment.