summaryrefslogtreecommitdiffstats
path: root/CHANGES.txt
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2022-06-26 19:07:57 (GMT)
committerMats Wichmann <mats@linux.com>2022-06-30 18:51:31 (GMT)
commit3fc497c7775f572a32056a1c6b52ee4592c4bced (patch)
treef5b272619e1fc945a93e59d462dd2acfdd97b22b /CHANGES.txt
parent07dc10b25b6169c9fb7e16dd78de8bb9ea107be6 (diff)
downloadSCons-3fc497c7775f572a32056a1c6b52ee4592c4bced.zip
SCons-3fc497c7775f572a32056a1c6b52ee4592c4bced.tar.gz
SCons-3fc497c7775f572a32056a1c6b52ee4592c4bced.tar.bz2
Improvements to lex and yacc tools
The mocked tools mylex.py and myyacc.py now understand the file-generation options, and generate a dummy file with predictable contents, for checking. This allows more testing of the path through the SCons support for these two without needing live commands. New tests added which invoke the file-generation options, and make sure the extra files are created, and that SCons detects and tracks the added targets. Work is done in a subdirectory, which exposes some existing known inconsistent behavior (the regular generated file goes in the subdir per the LEXCOM and YACCOM generated line, while the ones generated from commandline options go in the topdir) - but we're going to allow that behavior to continue for backwards compat. Same fix applied to yacc tool that PR #4168 did for lex - do subst_list() instead of subst() to preserve spaces in paths. That fix left the lex tool unable to pass the new test, as it could not see the individual arguments in the FLAGS variable, which was solved by indexing into the subst'd list so we can iterate over the args again. Test and tool cleanup; add DefaultEnvironment calls, etc. Note this mentions, but does not address the problem described in issue 4154. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'CHANGES.txt')
-rwxr-xr-xCHANGES.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index bea5838..6188863 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -202,6 +202,8 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
but was not applied to other dialects, and e2e tests explicitly checked
that FORTRANFLAGS did not propagate outside the FORTRAN dialect,
so the conclusion is that behavior is intentional (issue #2257)
+ - Improvements to lex and yacc tools: better documentation of
+ extra-file options, add test for extra-file behavior.
From Zhichang Yu:
- Added MSVC_USE_SCRIPT_ARGS variable to pass arguments to MSVC_USE_SCRIPT.