Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Enable x86 on x64 #25
I'd like to propose a simple relaxation of matching the build target with remote system architecture. It seems this would be quick to do and addresses the needs of most users.
Linux and Windows are quite happy running 32-bit applications on 64-bit systems. Indeed, there are good arguments that applications that can comfortably run
By default, GCC will build as 64-bit on 64-bit systems and as 32-bit on 32-bit systems. But it is simple to build as 32-bit on 64-bit systems : just add the g++ command line option -m32.
Note that this is quite distinct from cross-compilation, where binaries can be generated for a different target architecture. GCC can do this too, but that's issue #19.
Obviously a 64-bit Linux system must also have the 32-bit development headers/libraries installed
I suggest that, when a 64-bit target is detected, VCLinux allows building of both 64-bit and 32-bit projects. With the proviso that specifying the compiler option (-m32) and ensuring the presence of 32-bit development headers/libraries is the sole responsibility of the user. Although, in the longer term, this could be something for consideration under Issue #14.
Quickfix if you don't want to wait until the official support.