The comment says it marks all targets as testonly, but is it true? I don't see any mention in the GN's reference guide. Although I see a similar description for visibility.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Shuhei Takahashi (nya), gn-...@chromium.org
Variable propagation from outer scopes to inner scopes is a bit subtle in GN. Anything that looks for `invoker.testonly` directly will find it when it was defined in a containing scope. Things that use `forward_variables_from` will not find it with the `"*"` wildcard, but will find it when named explicitly.
Shuhei Takahashi (nya)
unread,
Dec 17, 2025, 10:25:48 PM (18 hours ago) Dec 17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message