diff --git a/build/moz.configure/toolchain.configure b/build/moz.configure/toolchain.configure index 9a684eaf67..696a64f8a1 100644 --- a/build/moz.configure/toolchain.configure +++ b/build/moz.configure/toolchain.configure @@ -340,12 +340,12 @@ def check_compiler(compiler, language, target): if info.type in ('clang-cl', 'clang', 'gcc'): append_flag('-std=gnu99') - # Note: MSVC, while supporting C++11, still reports 199711L for __cplusplus. + # Note: MSVC, while supporting newer standards, still reports 199711L for __cplusplus. # Note: this is a strict version check because we used to always add - # -std=gnu++11. + # -std=gnu++17. if info.language == 'C++': - if info.type in ('clang', 'gcc') and info.language_version != 201103: - append_flag('-std=gnu++11') + if info.type in ('clang', 'gcc') and info.language_version != 201703: + append_flag('-std=gnu++17') # MSVC 2015 headers include C++14 features, but don't guard them # with appropriate checks. if info.type == 'clang-cl' and info.language_version != 201402: