Boost logo

Boost-Commit :

From: troy_at_[hidden]
Date: 2007-05-25 21:30:17


Author: troy
Date: 2007-05-25 21:30:17 EDT (Fri, 25 May 2007)
New Revision: 4264
URL: http://svn.boost.org/trac/boost/changeset/4264

Log:
specify compiler via script argument

Text files modified:
   sandbox-branches/boost-cmake/unix_testing_node/continuous/initialize.sh | 11 ++++++++---
   1 files changed, 8 insertions(+), 3 deletions(-)

Modified: sandbox-branches/boost-cmake/unix_testing_node/continuous/initialize.sh
==============================================================================
--- sandbox-branches/boost-cmake/unix_testing_node/continuous/initialize.sh (original)
+++ sandbox-branches/boost-cmake/unix_testing_node/continuous/initialize.sh 2007-05-25 21:30:17 EDT (Fri, 25 May 2007)
@@ -1,17 +1,22 @@
 #!/bin/sh -x
 
 topdir=`pwd`
-
+COMPILER=$1
+if [[ -z "$COMPILER" ]]
+then
+ print "No compiler specified, using g++"
+ COMPILER=g++
+fi
 
 cd $topdir/debug/1.34.0/src
 svn update
 cd $topdir/debug/1.34.0/build
 rm CMakeCache.txt
-CXX="ccache g++" cmake -DBUILD_TESTING:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Debug ../src
+CXX="ccache $COMPILER" cmake -DBUILD_TESTING:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Debug ../src
 
 cd $topdir/release/1.34.0/src
 svn update
 cd $topdir/release/1.34.0/build
 rm CMakeCache.txt
-CXX="ccache g++" cmake -DBUILD_TESTING:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release ../src
+CXX="ccache $COMPILER" cmake -DBUILD_TESTING:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release ../src
 


Boost-Commit 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