Skip to content

Commit 0a175fe

Browse files
committed
Use relative path to detect config header and remove -std options
1 parent bafced4 commit 0a175fe

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tools/export/uvision/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,15 @@ def format_flags(self):
170170
flags['c_flags'] + flags['cxx_flags'] + flags['common_flags']
171171
)
172172
in_template = set(
173-
["--no_vla", "--cpp", "--c99", "-std=gnu99", "-std=g++98"] +
174-
config_option
173+
["--no_vla", "--cpp", "--c99"] + config_option
175174
)
176175

177176
def valid_flag(x):
178-
return x not in in_template or not x.startswith("-O")
177+
return (
178+
x not in in_template or
179+
not x.startswith("-O") or
180+
not x.startswith("-std")
181+
)
179182

180183
def is_define(s):
181184
return s.startswith("-D")

0 commit comments

Comments
 (0)