aboutsummaryrefslogtreecommitdiff
path: root/doc/manual.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-21 09:09:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-21 09:09:49 +0200
commit90919ace6d697598572decf66cbca1e487c30109 (patch)
tree59fcffcf75f6c9ebd40a29e8f11990cdddaad5fc /doc/manual.cli
parent50161c24c4c949167854c897a02514e959ed55ce (diff)
Note compiler mode options in manual
Diffstat (limited to 'doc/manual.cli')
-rw-r--r--doc/manual.cli11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/manual.cli b/doc/manual.cli
index cb1f71d..5bea4ae 100644
--- a/doc/manual.cli
+++ b/doc/manual.cli
@@ -1722,6 +1722,17 @@ $ b config.cxx.coptions=-O3 # Rebuild with -O3.
$ b # Rebuild with -g.
\
+\N|Besides the various \c{*.?options} variables, we can also specify the
+\"compiler mode\" options as part of the compiler executable in \c{config.c}
+and \c{config.cxx}. Such options cannot be modified by buildfiles and they
+will appear last on the command lines. For example:
+
+\
+$ b configure config.cxx=\"g++ -m32\"
+\
+
+|
+
We can also configure out of source builds of our projects. In this case,
besides \c{config.build}, \c{configure} also saves the location of the source
directory so that we don't have to repeat that either. Remember, this is how