mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-23 02:16:01 +01:00
simplification
This commit is contained in:
parent
dcc0a6a917
commit
8fbb14356b
@ -201,7 +201,7 @@ def parse_flags(self, line, uselib_store, env=None, force_static=False, posix=No
|
||||
static = False
|
||||
elif x.startswith('-Wl'):
|
||||
app('LINKFLAGS', x)
|
||||
elif x.startswith(('-m', '-f', '-dynamic')):
|
||||
elif x.startswith(('-m', '-f', '-dynamic', '-O')):
|
||||
app('CFLAGS', x)
|
||||
app('CXXFLAGS', x)
|
||||
elif x.startswith('-bundle'):
|
||||
@ -216,9 +216,6 @@ def parse_flags(self, line, uselib_store, env=None, force_static=False, posix=No
|
||||
app('LINKFLAGS', tmp)
|
||||
elif x.endswith(('.a', '.so', '.dylib', '.lib')):
|
||||
appu('LINKFLAGS', x) # not cool, #762
|
||||
elif x.startswith('-O'):
|
||||
app('CFLAGS', x)
|
||||
app('CXXFLAGS', x)
|
||||
|
||||
@conf
|
||||
def validate_cfg(self, kw):
|
||||
|
Loading…
Reference in New Issue
Block a user