5 messages in com.perforce.jamming[jamming] new to jam, a few questions
FromSent OnAttachments
Mark Beall18 Jan 2004 11:40 
Mark Beall18 Jan 2004 16:35 
Arnt Gulbrandsen18 Jan 2004 21:58 
Bob Cook19 Jan 2004 08:57 
Paul Forgey21 Jan 2004 14:36 
Subject:[jamming] new to jam, a few questions
From:Bob Cook (Bob.@Creo.com)
Date:01/19/2004 08:57:26 AM
List:com.perforce.jamming

For selecting platform compilers (and various compiler options) we set up a few variables that are passed down from the jam command line via the -s option. Our root Jamrules has some reasonable defaults set with the '?=' assignment.

For example, the command 'jam -sCORE_BUILD_COMPILER=MSVC7' will set the Jam variable 'CORE_BUILD_COMPILER' equal to the string 'MSVC7' which our scripts will detect internally and use to decide which rules to invoke. We pretty much rewrote all of the stock Jambase rules for compilation to get this to work seemlessly across multiple platforms and multiple compilers.

We have something like a dozen different knobs that can be adjusted using these -s type options. Developers tend to make scripts on their local machine to invoke Jam with the long string of -s options to create the type of build they are targeting for a particular product.

-----Original Message----- From: jamm@perforce.com [mailto:jamm@perforce.com]On Behalf Of Mark Beall Sent: Sunday, January 18, 2004 11:41 AM To: jamm@perforce.com Subject: [jamming] new to jam, a few questions

<snip> 1. How does jam set the OS variable and can I control that? We need to build with multiple compilers on the same os and I need to figure out a way for the user to tell jam which to use (preferably from an environment variable). </snip>