Skip to content

Commit

Permalink
bug 1326: document the -- operator to build.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhenderson committed Nov 4, 2014
1 parent 1e1a1ed commit 2491fc7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions doc/tutorial/source/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,29 @@ the |ns3| programs by simply typing
Okay, sorry, I made you build the |ns3| part of the system twice,
but now you know how to change the configuration and build optimized code.

The build.py script discussed above supports also the ``--enable-examples``
and ``enable-tests`` arguments, but in general, does not directly support
other waf options; for example, this will not work:

::

$ ./build.py --disable-python

will result in

::

build.py: error: no such option: --disable-python

However, the special operator ``--`` can be used to pass additional
options through to waf, so instead of the above, the following will work:

::

$ ./build.py -- --disable-python

as it generates the underlying command ``./waf configure --disable-python``.

Here are a few more introductory tips about Waf.

Configure vs. Build
Expand Down

0 comments on commit 2491fc7

Please sign in to comment.