Talk:Building DMD

From D Wiki
Revision as of 17:22, 8 September 2015 by Dacki (talk | contribs) ([Windows] Provide script to convert line endings in shell script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A sample dmd.conf

I created a sample dmd.conf. This should help the TBD.

[Environment]

DFLAGS=-I%@P%/../../phobos -I%@P%/../../druntime/import -L-L%@P%/../../phobos/generated/linux/release/64/ -L-L%@P%/../lib64 -L-L%@P%/../lib32 -L--no-warn-search-mismatch -L--export-dynamic

This file needs to be put in dmd/src. There is one caveat. The file contains platform specifics, namely linux/release/64/. I do not know of a good way around this.

Converting line endings with Cygwin

When running the Test Suite, some versions of Cygwin (i.e. latest x86) cannot process .sh files when they contain DOS line endings. In order to convert the files, the following script can be executed from dmd/test:

find . -name "*.sh" -exec dos2unix {} {} ';'

Note that dos2unix package has to be installed in Cygwin.