mirror of https://github.com/ARMmbed/mbed-os.git
Use relative path to detect config header and remove -std options
parent
bafced4099
commit
0a175fe0f5
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue