aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Collingbourne <pcc@google.com>2023-07-28 21:02:14 -0700
committerPeter Collingbourne <pcc@google.com>2023-07-28 21:03:00 -0700
commitefbceece33817facf746ddc378f33ae4cc602788 (patch)
tree48dbf8398c8f356d6f7467253cd84d9dad1d7226
parent45d6a94d6de54494150299ff0e7137196f3f0b47 (diff)
downloadninja-efbceece33817facf746ddc378f33ae4cc602788.tar.gz
Fix build.
This fork of Ninja fails to build because it uses a number of C++17 features. Fix it by changing the -std= flag. Change-Id: Ib94be50a51aff6b0a8f7b1490052cbe3e4fe0b57
-rwxr-xr-xconfigure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index ed3657d..04778fc 100755
--- a/configure.py
+++ b/configure.py
@@ -330,7 +330,7 @@ if platform.is_msvc():
cflags += ['/Ox', '/DNDEBUG', '/GL']
ldflags += ['/LTCG', '/OPT:REF', '/OPT:ICF']
else:
- cflags = ['-std=c++11',
+ cflags = ['-std=c++17',
'-g', '-Wall', '-Wextra',
'-Wno-deprecated',
'-Wno-missing-field-initializers',