Newer
Older
dub_jkp / changelog / dmd-mscoff-default.dd
@Sebastian Wilzbach Sebastian Wilzbach on 22 Mar 2019 739 bytes Windows: Don't use Optlink by default (#1661)
  1. DUB will no longer use OPTLINK as default on Windows
  2.  
  3. DMD's $(LINK2 https://digitalmars.com/ctg/optlink.html, OPTLINK) has many limitations. Apart from long-standing issues in the underlying DigitalMars runtime,
  4. the maximum number of symbols is limited as well, which is why most big DUB
  5. libraries can't be compiled with OPTLINK for years. This has been a cause of
  6. grief and pain for many users and impacted the newcomer experience severly.
  7.  
  8. With this release, `dub` will no longer use `OPTLINK` as default on Windows, but
  9. use `-m32mscoff` (MSCOFF) on 32-bit Windows systems and `-m64` (MSCOFF) on 64-bit
  10. Windows.
  11.  
  12. Users can still manually instruct `dub` to use OPTLINK with the `--arch=x86` switch of `dub`:
  13.  
  14. $(CONSOLE
  15. > dub --arch=x86
  16. )