summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2019-05-28 02:18:09 (GMT)
committerGitHub <noreply@github.com>2019-05-28 02:18:09 (GMT)
commit97c9990c850064ff5a7e93bc9652a2aaca0065ed (patch)
tree775ca27bda1f315757f1375de08d5f4bd062fc6c /src/engine
parentaa6df7ce5d50bb283f28182b4d2a3240840a9154 (diff)
parent2792dbd6420f59b26d105c7375e016231a2bd88c (diff)
downloadSCons-97c9990c850064ff5a7e93bc9652a2aaca0065ed.zip
SCons-97c9990c850064ff5a7e93bc9652a2aaca0065ed.tar.gz
SCons-97c9990c850064ff5a7e93bc9652a2aaca0065ed.tar.bz2
Merge pull request #3367 from mwichmann/docs-parse_flags
Update docs for parse_flags keywords
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/SCons/Environment.xml22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/engine/SCons/Environment.xml b/src/engine/SCons/Environment.xml
index 0a41e2a..0982c31 100644
--- a/src/engine/SCons/Environment.xml
+++ b/src/engine/SCons/Environment.xml
@@ -549,7 +549,7 @@ string, in which case a list will be returned instead of a string.
</para>
<para>
-If
+If
<varname>delete_existing</varname>
is 0, then adding a path that already exists
will not move it to the end; it will stay where it is in the list.
@@ -588,7 +588,7 @@ then any value(s) that already exist in the
construction variable will
<emphasis>not</emphasis>
be added again to the list.
-However, if delete_existing is 1,
+However, if delete_existing is 1,
existing matching values are removed first, so
existing values in the arg list move to the end of the list.
</para>
@@ -883,12 +883,14 @@ env4 = env.Clone(tools = ['msvc', MyTool])
<para>
The
<varname>parse_flags</varname>
-keyword argument is also recognized:
+keyword argument is also recognized to allow merging command-line
+style arguments into the appropriate construction
+variables (see &f-link-env-MergeFlags;).
</para>
<example_commands>
# create an environment for compiling programs that use wxWidgets
-wx_env = env.Clone(parse_flags = '!wx-config --cflags --cxxflags')
+wx_env = env.Clone(parse_flags='!wx-config --cflags --cxxflags')
</example_commands>
</summary>
</scons_function>
@@ -1880,9 +1882,9 @@ as the dependency.
</para>
<para>
-Note that this will only remove the dependencies listed from
-the files built by default. It will still be built if that
-dependency is needed by another object being built.
+Note that this will only remove the dependencies listed from
+the files built by default. It will still be built if that
+dependency is needed by another object being built.
See the third and forth examples below.
</para>
@@ -1954,8 +1956,8 @@ not as separate arguments to
<para>
New values are prepended to the environment variable by default,
-unless prepend=0 is specified.
-Duplicate values are always eliminated,
+unless prepend=0 is specified.
+Duplicate values are always eliminated,
since this function calls
&f-link-AppendENVPath;
or
@@ -2492,7 +2494,7 @@ then any value(s) that already exist in the
construction variable will
<emphasis>not</emphasis>
be added again to the list.
-However, if delete_existing is 1,
+However, if delete_existing is 1,
existing matching values are removed first, so
existing values in the arg list move to the front of the list.
</para>