Echoing commands in bjam v2
I'm building the Boost 1.34.0 beta libraries with g++ on Linux, and I want to see the actual command that bjam uses to compile source files. How can I make it echo the command line? -- Dick Hadsell 914-259-6320 Fax: 914-259-6499 Reply-to: hadsell@blueskystudios.com Blue Sky Studios http://www.blueskystudios.com 44 South Broadway, White Plains, NY 10601
Richard Hadsell wrote:
I'm building the Boost 1.34.0 beta libraries with g++ on Linux, and I want to see the actual command that bjam uses to compile source files. How can I make it echo the command line?
By running bjam --help and reading the "Important Options:" part of the output, then using one of the option described there. Sorry for sending you to docs instead of giving direct answer, but the output of --help is likely to save some questions in future. - Volodya
Vladimir Prus wrote:
By running
bjam --help
and reading the "Important Options:" part of the output, then using one of the option described there.
Sorry for sending you to docs instead of giving direct answer, but the output of --help is likely to save some questions in future.
Thanks for pointing out the 'bjam --help'. Since I wondered why I missed the -d+2 option, I went back to the docs. It seems to be missing. Specifically, I looked at "Chapter 25. Boost.Build V2 User Manual". The Overview/Invocation link pointed to a section that described several options (--clean, ... --debug) and then pointed to the "Command line arguments" section of the Detailed reference. This describes the syntax, and is followed by a "Command line options" section, which says this: All of the Boost.Build options start with the "--" prefix. They are described in the following table. FIXME: That table has moved into "User documentation" section and there's nothing we can add here. Remove this part? So, it seems that 'bjam --help' is the only documentation of some options, and I'm glad you pointed it out. -- Dick Hadsell 914-259-6320 Fax: 914-259-6499 Reply-to: hadsell@blueskystudios.com Blue Sky Studios http://www.blueskystudios.com 44 South Broadway, White Plains, NY 10601
Richard Hadsell wrote:
Vladimir Prus wrote:
By running
bjam --help
and reading the "Important Options:" part of the output, then using one of the option described there.
Sorry for sending you to docs instead of giving direct answer, but the output of --help is likely to save some questions in future.
Thanks for pointing out the 'bjam --help'.
Since I wondered why I missed the -d+2 option, I went back to the docs. It seems to be missing. Specifically, I looked at "Chapter 25. Boost.Build V2 User Manual". The Overview/Invocation link pointed to a section that described several options (--clean, ... --debug) and then pointed to the "Command line arguments" section of the Detailed reference. This describes the syntax, and is followed by a "Command line options" section, which says this:
All of the Boost.Build options start with the "--" prefix. They are described in the following table. FIXME: That table has moved into "User documentation" section and there's nothing we can add here. Remove this part?
Ah, I think we need to clean this part. There's a section about jam, which has documentation for -d+2, but it's separate place from where all Boost.Build options are documented. Perhaps I'll use some XInclude magic to bring them together. - Volodya
Hi ! On Mittwoch 02 Mai 2007, Richard Hadsell wrote:
I'm building the Boost 1.34.0 beta libraries with g++ on Linux, and I want to see the actual command that bjam uses to compile source files. How can I make it echo the command line?
For real compilation add -d+2 to the command line. For dry-run use -n which only outputs the build commands. Nice for testing... Yours, Jürgen -- * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister Straße 15 * juergen.hunold@ivembh.de ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !
Juergen Hunold wrote:
For real compilation add -d+2 to the command line. For dry-run use -n which only outputs the build commands. Nice for testing...
Danke. Both options are useful to know about. -- Dick Hadsell 914-259-6320 Fax: 914-259-6499 Reply-to: hadsell@blueskystudios.com Blue Sky Studios http://www.blueskystudios.com 44 South Broadway, White Plains, NY 10601
participants (3)
-
Juergen Hunold
-
Richard Hadsell
-
Vladimir Prus