From 4e5f9d227c99d54d1498fc80d7f59044e6979d90 Mon Sep 17 00:00:00 2001 From: Mats Wichmann Date: Sun, 31 May 2020 16:46:22 -0600 Subject: Fix two errors in Environment.xml [ci skip] Recent changes introduced two xml errors that were not caught by docs-validate, because that script only validates xml under the doc directory, not the SCons source directory. A little further tweaking of CacheDir discussion is done - one of the errors was there and it got me looking... Signed-off-by: Mats Wichmann --- SCons/Environment.xml | 47 ++++++++++++++++++++++------------------------- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/SCons/Environment.xml b/SCons/Environment.xml index 1b00e32..f9c9304 100644 --- a/SCons/Environment.xml +++ b/SCons/Environment.xml @@ -662,8 +662,7 @@ caching by calling &f-env-CacheDir;. -When a -cache_dir +When derived-file caching is being used and &scons; finds a derived file that needs to be rebuilt, @@ -672,6 +671,10 @@ file with matching build signature exists (indicating the input file(s) and build action(s) were identical to those for the current target), and if so, will retrieve the file from the cache. +&scons; +will report +Retrieved `file' from cache +instead of the normal build message. If the derived file is not present in the cache, &scons; will build it and @@ -680,6 +683,21 @@ identified by its build signature, for future use. +The +Retrieved `file' from cache +messages are useful for human consumption, +but less so when comparing log files between +&scons; runs which will show differences that are +noisy and not actually significant. +To disable, +use the option. +With this option, &scons; +will print the action that would +have been used to build the file without +considering cache retrieval. + + + Derived-file caching may be disabled for any invocation of &scons; by giving the @@ -712,27 +730,6 @@ has been done. -When using -&f-CacheDir;, -&scons; -will report -Retrieved `file' from cache -unless the - -option is being used. -With the - -option, &scons; -will print the action that would -have been used to build the file -whether or not it was retreived from the cache. -This is useful to generate build logs -that are equivalent regardless of whether -a given derived file has been built in-place -or retrieved from the cache. - - - The &f-link-NoCache; method can be used to disable caching of specific files. This can be @@ -880,7 +877,7 @@ for the calling syntax and details. Executes a specific action (or list of actions) to build a target file or files -from a source file or files. +from a source file or files. This is more convenient than defining a separate Builder object for a single special-case build. @@ -1380,7 +1377,7 @@ for more information. -Serializes &cpnsvars; to a string. +Serializes &consvars; to a string. The method supports the following formats specified by format: -- cgit v0.12