|
Boost-Build : |
Subject: Re: [Boost-build] Different commands on different platforms?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-12-04 08:13:41
On Tuesday 02 December 2008 21:25:19 John Maddock wrote:
> Vladimir Prus wrote:
> >> Steven has already provided the solution. The explanation is that in
> >> V2,
> >> variables such as NT and OS and UNIX are available in global module,
> >> whereas
> >> each Jamfile is a separate module. Helper functions such as os.name
> >> is the
> >> best approach for checking the host OS.
>
> OK thanks, but does that mean that the docs here:
> http://www.boost.org/doc/tools/build/doc/html/jam/language.html#jam.language.variables.builtins
> are wrong?
Well, not wrong, just not telling everything. Anyway, I've tried to improve that
as follows, but Quickbook hates me, and silently makes the link to nowhere. Any
ideas?
- Volodya
Index: bjam.qbk
===================================================================
--- bjam.qbk (revision 50009)
+++ bjam.qbk (working copy)
@@ -1343,7 +1343,10 @@
[section:builtins Built-in Variables]
-This section discusses variables that have special meaning to =bjam=.
+This section discusses variables that have special meaning to =bjam=. All of
+these must be defined or used in the global module -- using those variables
+inside a named module will not have the desired effect.
+See [link modules Modules].
[section:search SEARCH and LOCATE]
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk