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

Change subject: scons: Copy the value of "tags" before adding "add_tags" to it.
......................................................................

scons: Copy the value of "tags" before adding "add_tags" to it.

Otherwise the tags in "add_tags" are added into the original, modifying
it for the caller.

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

Approvals:
  Daniel Carvalho: 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 6c485f3..7a2a641 100644
--- a/site_scons/gem5_scons/sources.py
+++ b/site_scons/gem5_scons/sources.py
@@ -201,7 +201,7 @@
             tags = { tags }
         if not isinstance(tags, set):
             tags = set(tags)
-        self.tags = tags
+        self.tags = tags.copy()

         if add_tags:
             if isinstance(add_tags, str):

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/51830
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: I6a82168d54f80ec9f919825edebe7f0ef154c5ae
Gerrit-Change-Number: 51830
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