Boost logo

Boost-Build :

Subject: [Boost-build] problem in prescribing the build flags for a special file
From: rrossi_at_[hidden]
Date: 2011-02-22 17:45:26


Dear list,

I am having troubles in fine controlling the compilation of
a file. I checked the FAQ but is still gives me problems...

my directory
structure (simplified)

is

base_dir (Jamroot is here)

|

|_dir1-Jamfile1

|

|_dir2_Jamfile2

inside Jamroot I start with
something like

using gcc : : /usr/bin/g++-4.5 ;

using intel : : :
"-fPIC -ansi -funroll-loops -cxxlib-gcc -openmp -wd654 -wd10010" "-fPIC
-funroll-loops -cxxlib-gcc -openmp -wd654 -wd10010" ;

using sun : : : "
-w -DBOOST_UBLAS_UNSUPPORTED_COMPILER=0" " -w
-DBOOST_UBLAS_UNSUPPORTED_COMPILER=0" " -w
-DBOOST_UBLAS_UNSUPPORTED_COMPILER=0" ;

using clang : :
/home/riccardo/clang_svn/build/Release/bin/clang : " -fPIC -ansi
-funroll-loops -ffast-math -Wno-unknown-pragmas " " -fPIC -funroll-loops
-ffast-math " ;

which configures the settings that I nornally like to use
for my compilation

unfortunately inside "dir2" there is a "special_file"
which I need to compile with a very well defined set of options.

If I
define

obj : special_file.cpp : "whatever1" "list of ops" ;

as
suggested in the FAQ the special flags are ADDED to the list of flags
already prescribed in the Jamroot. How can I SUBSTITUTE them? (namely i
would like to have exclusively "-O0 -g"

the real code can be found online
here:

http://kratos.cimne.upc.es/trac/browser/kratos

(Common_Jamroot is
renamed as Jamroot)

while the problematic Jamfile is:

http://kratos.cimne.upc.es/trac/browser/kratos/applications/MeshingApplication/custom_external_libraries/tetgen/tetgen1.4.0

Thank you for any hint

Riccardo

 



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