summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-07-09 00:54:02 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-07-09 00:55:13 +0200
commit9d7166b448198875bdff43d7054d0f5914e675de (patch)
tree3d4962f34e3c7c03f667f32c13ad52826afa707e /bin
parentc3c2ca43686b8cf63e60f783b81cb353d91973fa (diff)
fix compile_commands.json when generated with modern gcc
Change-Id: I4a17cfb567f5ebec8bb416b9aa4d58763ff36c36
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gbuild-to-ide2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide
index 90a732d7c614..b016bfe02a0c 100755
--- a/bin/gbuild-to-ide
+++ b/bin/gbuild-to-ide
@@ -379,7 +379,7 @@ class VimIntegrationGenerator(IdeIntegrationGenerator):
command += ' -c '
command += file
# Help clang when the tree is configured for gcc.
- for gnu in ('-std=gnu++11', '-std=gnu++1y'):
+ for gnu in ('-std=gnu++11', '-std=gnu++1y', '-std=gnu++17'):
command = command.replace(gnu, '-std=c++11')
return command