Difference between revisions of "Talk:Building DMD"
(Created page with "== A sample dmd.conf == I created a sample dmd.conf. This should help the TBD. <syntaxhighlight lang=ini> [Environment] DFLAGS=-I%@P%/../../phobos -I%@P%/../../druntime/imp...") |
([Windows] Provide script to convert line endings in shell script) |
||
Line 11: | Line 11: | ||
This file needs to be put in dmd/src. | 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. | 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: | ||
+ | |||
+ | <syntaxhighlight lang=ini> | ||
+ | find . -name "*.sh" -exec dos2unix {} {} ';' | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Note that '''dos2unix''' package has to be installed in Cygwin. |
Latest revision as of 17:22, 8 September 2015
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.