Skip to content

Fix special variables not having special attrs - #4945

Open
mwichmann wants to merge 2 commits into
SCons:masterfrom
mwichmann:fix/special-var-attrs
Open

mwichmann wants to merge 2 commits into
SCons:masterfrom
mwichmann:fix/special-var-attrs

Conversation

@mwichmann

@mwichmann mwichmann commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

The wording in the manpage, if you read the Variable Substitution section, implies that the Special Variables like $CHANGED_TARGETS ought to support the Special Attributes described in the next subsection: "A variable name may have the following modifiers appended within the enclosing curly braces to access properties...". A possible answer is to say that variables that sound like they're lists don't work. This change takes the other approach: make those six respond to special attribute lookup in a consistent way.

Fixes #2554

Note: includes the regenerated variables.mod because the absence of the new varible MSVC_PREVIEW from earlier was causing headaches in some situations (of course easy to fix with regen but sometimes you want to validate docs against a clean tree.

Contributor Checklist:

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
  • I have updated CHANGES.txt and RELEASE.txt (and read the README.rst).
  • I have updated the appropriate documentation

The wording in the manpage, if you read the Variable Substitution
section, implies that the Special Variables like $CHANGED_TARGETS ought
to support the Special Attributes described in the following subsections:
"A variable name may have the following modifiers appended within the
enclosing curly braces to acces properties...". A possible answer is to
say that variables that sound like they're lists don't work.  This change
takes the other approach: make those six respond to special attribute
lookup in a consistent way.

Fixes SCons#2554

Signed-off-by: Mats Wichmann <mats@linux.com>
Add more description - the entries in the construction variable
section said effectively nothing. The Special Varaiables and
Special Attributes sections were further updated.

Signed-off-by: Mats Wichmann <mats@linux.com>
@mwichmann
mwichmann force-pushed the fix/special-var-attrs branch from 62dd738 to 6b1b0b9 Compare November 8, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CHANGED_TARGETS has no properties

1 participant