Build sample apps using C++17 (see #3611)
This commit is contained in:
parent
7538208409
commit
c718a5bee6
13
BUILD.gn
13
BUILD.gn
|
@ -1147,6 +1147,19 @@ config("libcef_dll_wrapper_config") {
|
||||||
ldflags = [ "/STACK:0x800000" ]
|
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.
|
# libcef_dll_wrapper target.
|
||||||
|
|
Loading…
Reference in New Issue