Boost logo

Boost Users :

From: Bijan (bijan.nazem_at_[hidden])
Date: 2008-08-15 14:23:03


Adam Merz <adammerz <at> hotmail.com> writes:

>
> I don't think define=arch:SSE2 has the effect you think it does; rather, I
> believe what you want is cxxflags="-arch:SSE2". Also note that -arch has no
> effect on 64-bit compilations, so it can be ommitted from the address-
model=64
> bjam invocations.
>

I thought "define" was more generic and applicable for both of C and C++ code
(cflags and cxxflags).
It would be nice to have a cookbook for buliding boost for different scenarios
(Linux/Windows-x86/x64-thraeding-runtime...), specially for optimization.

1)Open up a command prompt
2)cd boost_1_36_0 \tools\jam\src
3)build.bat
4)cd boost_1_36_0
5.1)tools\jam\src\bin.ntx86_64\bjam.exe toolset=msvc-9.0 define=_SECURE_SCL=0
define=arch:SSE2 link=shared debug address-model=32 threading=multi --
prefix=c:/boost32 --without-python --without-mpi clean
5.2)tools\jam\src\bin.ntx86_64\bjam.exe toolset=msvc-9.0 define=_SECURE_SCL=0
define=arch:SSE2 link=shared debug address-model=32 threading=multi --
prefix=c:/boost32 --without-python --without-mpi install
>f:\boost_build_result_debug_32.txt
6.1)tools\jam\src\bin.ntx86_64\bjam.exe toolset=msvc-9.0 define=_SECURE_SCL=0
define=arch:SSE2 link=shared debug address-model=64 threading=multi --
prefix=c:/boost64 --without-python --without-mpi clean
6.2)tools\jam\src\bin.ntx86_64\bjam.exe toolset=msvc-9.0 define=_SECURE_SCL=0
define=arch:SSE2 link=shared debug address-model=64 threading=multi --
prefix=c:/boost64 --without-python --without-mpi install
>f:\boost_build_result_debug_64.txt
7.1)tools\jam\src\bin.ntx86_64\bjam.exe toolset=msvc-9.0 define=_SECURE_SCL=0
define=GL define=arch:SSE2 link=shared release address-model=32
threading=multi --prefix=c:/boost32 --without-python --without-mpi clean
7.2)tools\jam\src\bin.ntx86_64\bjam.exe toolset=msvc-9.0 define=_SECURE_SCL=0
define=GL define=arch:SSE2 link=shared release address-model=32
threading=multi --prefix=c:/boost32 --without-python --without-mpi install
>f:\boost_build_result_release_32.txt
8.1)tools\jam\src\bin.ntx86_64\bjam.exe toolset=msvc-9.0 define=_SECURE_SCL=0
define=GL define=arch:SSE2 link=shared release address-model=64
threading=multi --prefix=c:/boost64 --without-python --without-mpi clean
8.2)tools\jam\src\bin.ntx86_64\bjam.exe toolset=msvc-9.0 define=_SECURE_SCL=0
define=GL define=arch:SSE2 link=shared release address-model=64
threading=multi --prefix=c:/boost64 --without-python --without-mpi install
>f:\boost_build_result_release_64.txt


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net