ldc-developers/ldc — Issue #23: Multilib
Author: dsimcha
Created: 2011-11-13 18:16:12+00:00
State: open

As far as I can tell, there's no multiarch/multilib build option that compiles Phobos and druntime as both 32- and 64-bit and installs them in the proper paths based on this designation. In DMD, the binaries ship with both 32- and 64-bit Phobos/druntime pre-built. When building GDC, both are built automatically if --enable-multilib is used. I want to be able to do something like:

ldc2 hello.d # Default, 64-bit on 64-bit machine
ldc2 hello.d -m32 # 32-bit, automatically links w/ 32-bit Phobos and druntime