Open braddr opened 11 years ago
notes from Iain:
For building gcc, you will have to tweak it's build, host and target configure flags.
eg: To build a Linux 32/64 cross compiler (assuming this is built on a 64bit box).
./configure --build=x86_64-linux-gnu --host=i686-linux-gnu --target=x86_64-linux-gnu
For running the testsuite, something like this should do the trick.
make check-d RUNTESTFLAGS="--target_board=unix{-m32,-m64}"
Or to have each -march separately:
make check-d RUNTESTFLAGS="--target_board=unix{-m32}" make check-d RUNTESTFLAGS="--target_board=unix{-m64}"
There exists a script that tries to handle cross compiler testing used on the server running buildbot.
https://github.com/D-Programming-GDC/buildbot-gdc/blob/master/workers/buildci.sh
While it claims to be building 32, 64, and the two cross bitness, they're actually identical
What do I need to do here to force building a pure 32 bit environment, a pure 64 bit environment, and the two cross environments?