From d8cb54ee9289299b841a51b57c20ca5333774dce Mon Sep 17 00:00:00 2001 From: ownedbywuigi Date: Thu, 23 Apr 2026 07:49:40 +0100 Subject: [PATCH] Force C++17 --- build/moz.configure/toolchain.configure | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: