diff options
author | Mats Wichmann <mats@linux.com> | 2022-06-26 19:07:57 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2022-06-30 18:51:31 (GMT) |
commit | 3fc497c7775f572a32056a1c6b52ee4592c4bced (patch) | |
tree | f5b272619e1fc945a93e59d462dd2acfdd97b22b /doc | |
parent | 07dc10b25b6169c9fb7e16dd78de8bb9ea107be6 (diff) | |
download | SCons-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 'doc')
-rw-r--r-- | doc/scons.mod | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/doc/scons.mod b/doc/scons.mod index 77a7d24..0c1a85e 100644 --- a/doc/scons.mod +++ b/doc/scons.mod @@ -59,7 +59,6 @@ <!ENTITY Cons "<application xmlns='http://www.scons.org/dbxsd/v1.0'>Cons</application>"> <!ENTITY cp "<application xmlns='http://www.scons.org/dbxsd/v1.0'>cp</application>"> <!ENTITY csh "<application xmlns='http://www.scons.org/dbxsd/v1.0'>csh</application>"> -<!ENTITY flex "<application xmlns='http://www.scons.org/dbxsd/v1.0'>flex</application>"> <!ENTITY f77 "<application xmlns='http://www.scons.org/dbxsd/v1.0'>f77</application>"> <!ENTITY f90 "<application xmlns='http://www.scons.org/dbxsd/v1.0'>f90</application>"> <!ENTITY f95 "<application xmlns='http://www.scons.org/dbxsd/v1.0'>f95</application>"> |