Use relative path to detect config header and remove -std options

pull/7569/head
Jimmy Brisson 2017-10-17 11:48:52 -05:00
parent bafced4099
commit 0a175fe0f5
1 changed files with 6 additions and 3 deletions

View File

@ -170,12 +170,15 @@ class Uvision(Exporter):
flags['c_flags'] + flags['cxx_flags'] + flags['common_flags']
)
in_template = set(
["--no_vla", "--cpp", "--c99", "-std=gnu99", "-std=g++98"] +
config_option
["--no_vla", "--cpp", "--c99"] + config_option
)
def valid_flag(x):
return x not in in_template or not x.startswith("-O")
return (
x not in in_template or
not x.startswith("-O") or
not x.startswith("-std")
)
def is_define(s):
return s.startswith("-D")