Adam Merz
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.
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 --
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
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
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 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 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 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