Gabe Black has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/51828 )

Change subject: scons: Resolve tags for source files as well as for filters.
......................................................................

scons: Resolve tags for source files as well as for filters.

The tags for source files need to be resolved as well as the tags for
the filters themselves.

For example, the 'x86 isa' tag could imply 'gem5 lib'. If we filter for
all files which include the tag 'gem5 lib', we would also want to get
all the files that used the tag 'x86 isa' by itself, since that would
imply 'gem5 lib' as well.

Change-Id: Ie513778cc5b8ac1f1893728b14e84cabdaabf0e6
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/51828
Maintainer: Gabe Black <[email protected]>
Tested-by: kokoro <[email protected]>
Reviewed-by: Bobby R. Bruce <[email protected]>
Reviewed-by: Daniel Carvalho <[email protected]>
---
M site_scons/gem5_scons/sources.py
1 file changed, 23 insertions(+), 1 deletion(-)

Approvals:
  Daniel Carvalho: Looks good to me, but someone else must approve
  Bobby R. Bruce: Looks good to me, approved
  Gabe Black: Looks good to me, approved
  kokoro: Regressions pass




diff --git a/site_scons/gem5_scons/sources.py b/site_scons/gem5_scons/sources.py
index 6f44041..6c485f3 100644
--- a/site_scons/gem5_scons/sources.py
+++ b/site_scons/gem5_scons/sources.py
@@ -168,7 +168,7 @@
 class SourceList(list):
     def apply_filter(self, env, f):
         def match(source):
-            return f.predicate(env, source.tags)
+            return f.predicate(env, resolve_tags(env, source.tags))
         return SourceList(filter(match, self))

     def __getattr__(self, name):

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/51828
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ie513778cc5b8ac1f1893728b14e84cabdaabf0e6
Gerrit-Change-Number: 51828
Gerrit-PatchSet: 3
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Bobby R. Bruce <[email protected]>
Gerrit-Reviewer: Daniel Carvalho <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to