2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-23 02:16:01 +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:
Thomas Nagy 2014-01-18 01:46:53 +01:00
parent fbb7a0e720
commit fa8fed39a0
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -337,15 +337,15 @@ def process_use(self):
self.env.append_value('DEFINES', self.to_list(y.export_defines)) 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: for x in names:
try: try:
y = self.bld.get_tgen_by_name(x) 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: if not self.env['STLIB_' + x] and not x in self.uselib:
self.uselib.append(x) self.uselib.append(x)
else: 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: if not self.env['STLIB_' + k] and not k in self.uselib:
self.uselib.append(k) self.uselib.append(k)