From 095229ab975e6954258204a5b86df32a7dd5d93d Mon Sep 17 00:00:00 2001 From: James Chen Date: Sun, 1 Oct 2023 21:21:05 +0800 Subject: [PATCH] PATCH: Re-add use_cxx17 --- build/config/compiler/BUILD.gn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index c2b704e6c..9e3a30e24 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -175,6 +175,10 @@ declare_args() { # a reproducer file to be saved. save_reproducers_on_lld_crash = false + # Allow projects that wish to stay on C++17 to override Chromium's default. + # TODO(crbug.com/1402249): evaluate removing this end of 2023 + use_cxx17 = false + # Enable ShadowCallStack for compiled binaries. SCS stores a pointer to a # shadow call stack in register x18. Hence, x18 must not be used by the OS # or libraries. We assume that to be the case for high end Android