mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 18:07:12 +01:00
'x use y use AAA' will add the AAA flags to x, but 'x use y uselib AAA' will not
This commit is contained in:
parent
fbb7a0e720
commit
fa8fed39a0
@ -337,15 +337,15 @@ def process_use(self):
|
||||
self.env.append_value('DEFINES', self.to_list(y.export_defines))
|
||||
|
||||
|
||||
# and finally, add the uselib variables (no recursion needed)
|
||||
# and finally, add the use variables (no recursion needed)
|
||||
for x in names:
|
||||
try:
|
||||
y = self.bld.get_tgen_by_name(x)
|
||||
except Exception:
|
||||
except Errors.WafError:
|
||||
if not self.env['STLIB_' + x] and not x in self.uselib:
|
||||
self.uselib.append(x)
|
||||
else:
|
||||
for k in self.to_list(getattr(y, 'uselib', [])):
|
||||
for k in self.to_list(getattr(y, 'use', [])):
|
||||
if not self.env['STLIB_' + k] and not k in self.uselib:
|
||||
self.uselib.append(k)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user