Author Topic: Additions to build instructions  (Read 1583 times)

0 Members and 1 Guest are viewing this topic.

Offline Forestidia86

  • Posts: 723
  • inactive
    • View Profile
Additions to build instructions
« on: September 18, 2020, 09:48:21 PM »
There is an overview of command lines/switches for dub.

Dmd as well as Ldc seem to try to build the 64bit build on Windows by default. The switch to affect that is '--arch=...', for 32bit build '...' is 'x86' ('x86_64' for 64bit build).

For the choice of compiler you can use the switch '--compiler=...', if you want sth different from what is used by default. Lix supports 'dmd' and 'ldc2' for '...' . (At least on Windows only 64bit is supported with ldc2 and 32bit with dmd, 64bit with dmd is supported with some tweaks).

If you look closely it tells you for what architecture which compiler is building, at the beginning there is e.g. the line 'Performing "debug" build using C:\D\ldc2\bin\ldc2.exe for x86_64'.
« Last Edit: September 18, 2020, 10:32:59 PM by Forestidia86 »

Offline Simon

  • Administrator
  • Posts: 3876
    • View Profile
    • Lix
Re: Additions to build instructions
« Reply #1 on: September 19, 2020, 02:59:17 PM »
Thanks! I'll add --arch=x86 to the Windows notes about building with DMD.

-- Simon