Build sample apps using C++17 (see #3611)

This commit is contained in:
Marshall Greenblatt 2024-11-18 11:58:06 -05:00
parent 7538208409
commit c718a5bee6
1 changed files with 13 additions and 0 deletions

View File

@ -1147,6 +1147,19 @@ config("libcef_dll_wrapper_config") {
ldflags = [ "/STACK:0x800000" ]
}
}
# Build using the minimum C++ version supported by the CEF binary distribution.
# Chromium (and libcef) may build with a newer C++ version so this helps to
# avoid accidental usage of new/unsupported language features in sample apps.
# For Chromium defaults see //build/config/compiler/BUILD.gn.
if (is_win) {
cflags_cc = [ "/std:c++17" ]
} else {
cflags_cc = [ "-std=c++17" ]
}
if (is_mac) {
cflags_objcc = [ "-std=c++17" ]
}
}
# libcef_dll_wrapper target.