[prev in list] [next in list] [prev in thread] [next in thread]
List: boost-build
Subject: [Boost-build] problem in prescribing the build flags for a special
From: <rrossi () cimne ! upc ! edu>
Date: 2011-02-22 22:45:26
Message-ID: e2d402cea9265175a72d1990485bf130 () correu ! cimne ! upc ! edu
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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
[Attachment #5 (unknown)]
<p style="margin-bottom: 0in;">Dear list,</p>
<p style="margin-bottom: 0in;">I am having troubles in fine controlling the \
compilation of a file. I checked the FAQ but is still gives me problems...</p> <p \
style="margin-bottom: 0in;"> </p> <p style="margin-bottom: 0in;">my directory \
structure (simplified)</p> <p style="margin-bottom: 0in;"> </p>
<p style="margin-bottom: 0in;">is</p>
<p style="margin-bottom: 0in;"> </p>
<p style="margin-bottom: 0in;">base_dir (Jamroot is here)</p>
<p style="margin-bottom: 0in;">|</p>
<p style="margin-bottom: 0in;">|_dir1-Jamfile1</p>
<p style="margin-bottom: 0in;">|</p>
<p style="margin-bottom: 0in;">|_dir2_Jamfile2</p>
<p style="margin-bottom: 0in;"> </p>
<p style="margin-bottom: 0in;">inside Jamroot I start with something like</p>
<p style="margin-bottom: 0in;"> </p>
<p style="margin-bottom: 0in;">using gcc : : /usr/bin/g++-4.5 ;</p>
<p style="margin-bottom: 0in;">using intel : : : <cxxflags>"-fPIC -ansi \
-funroll-loops -cxxlib-gcc -openmp -wd654 -wd10010" <cflags>"-fPIC \
-funroll-loops -cxxlib-gcc -openmp -wd654 -wd10010" ;</p> <p style="margin-bottom: \
0in;">using sun : : : <cflags>" -w -DBOOST_UBLAS_UNSUPPORTED_COMPILER=0" \
<cxxflags>" -w -DBOOST_UBLAS_UNSUPPORTED_COMPILER=0" <linkflags>" -w \
-DBOOST_UBLAS_UNSUPPORTED_COMPILER=0" ;</p> <p style="margin-bottom: 0in;">using \
clang : : /home/riccardo/clang_svn/build/Release/bin/clang : <cxxflags>" \
-fPIC -ansi -funroll-loops -ffast-math -Wno-unknown-pragmas " <cflags>" -fPIC \
-funroll-loops -ffast-math " ;</p> <p style="margin-bottom: 0in;"> </p>
<p style="margin-bottom: 0in;">which configures the settings that I nornally like to \
use for my compilation</p> <p style="margin-bottom: 0in;"> </p>
<p style="margin-bottom: 0in;">unfortunately inside “dir2” there is a \
“special_file” which I need to compile with a very well defined set of \
options.</p> <p style="margin-bottom: 0in;"> </p>
<p style="margin-bottom: 0in;">If I define</p>
<p style="margin-bottom: 0in;">obj : special_file.cpp : \
<cxxflags>”whatever1” <cflags>”list of ops” ;</p> \
<p style="margin-bottom: 0in;">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"</p> <p style="margin-bottom: \
0in;"> </p> <p style="margin-bottom: 0in;">the real code can be found online \
here:</p> <p style="margin-bottom: \
0in;">http://kratos.cimne.upc.es/trac/browser/kratos</p> <p style="margin-bottom: \
0in;">(Common_Jamroot is renamed as Jamroot)</p> <p style="margin-bottom: \
0in;"> </p> <p style="margin-bottom: 0in;">while the problematic Jamfile is:</p>
<p style="margin-bottom: \
0in;">http://kratos.cimne.upc.es/trac/browser/kratos/applications/MeshingApplication/custom_external_libraries/tetgen/tetgen1.4.0</p>
<p style="margin-bottom: 0in;"> </p>
<p style="margin-bottom: 0in;">Thank you for any hint</p>
<p style="margin-bottom: 0in;">Riccardo</p>
<p style="margin-bottom: 0in;"> </p>
<p style="margin-bottom: 0in;"> </p>
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic