[gnome-code-assistance] [backends/c] Do not filter out -std= flag
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] [backends/c] Do not filter out -std= flag
- Date: Wed, 4 Dec 2013 11:16:20 +0000 (UTC)
commit b9420f55d841d4f7d74beab241a1014ef1ff4f76
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Wed Dec 4 12:16:11 2013 +0100
[backends/c] Do not filter out -std= flag
backends/c/makefileintegration.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/backends/c/makefileintegration.py b/backends/c/makefileintegration.py
index 38e416d..83fac5e 100644
--- a/backends/c/makefileintegration.py
+++ b/backends/c/makefileintegration.py
@@ -372,6 +372,7 @@ class MakefileIntegration:
# -W: warnings
# -f: compiler flags
# -x: language
+ # -std=<std>: standard
i = 0
inexpand = False
@@ -416,6 +417,8 @@ class MakefileIntegration:
if (v == 'D' or v == 'x') and len(flag) == 2 and i < len(flags):
ret.append(flags[i])
i += 1
+ elif flag.startswith('-std='):
+ ret.append(flag)
return ret
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]