I am currently migrating one of my projects to GCC, and I am using the MinGW-w64 project to accomplish this, since I require both x64 and x86 support.
However, I ran into a problem setting up my build environment. My project currently uses the Boost C ++ libraries, and to simplify the build process, I also use Boost.Build in my project (as this simplifies integration).
In MSVC, this is fine, because I can do the following from the command line:
b2 toolset=msvc address-model=32
MinGW-w64 makes this "problematic" because 32-bit and 64-bit toolchains are placed in separate directories. (C: \ MinGW32 and C: \ MinGW64 respectively).
Is it possible to set Boost.Build so that it selects the correct toolchain based on the address model flag? If not, what is my next best option?
EDIT:
If this helps, I use rubenvb 4.6.3-1 assemblies from the MinGW-w64 website in the "Personal Builds" folder (I use these assemblies, in particular, since I want to try to parse my code) but not compile - under Clang) .
EDIT:
One solution that I was just thinking about would be βmanualβ for PATH to point to the correct toolchain before compiling, however this adds an extra level of complexity to my build process that I would like to avoid. Ideally, I would like it to be as simple as it would be for MSVC, although I understand that it may not be possible. In the worst case, I assume that what I just suggested will work, and I just need to add scripts to set PATH correctly before calling Boost.Build. That would mean a hardcoding path, although I don't want to do ...
RaptorFactor
source share