apply FreeBSD patch for DMD detection, close #211

This commit is contained in:
Basile Burg 2017-12-12 14:39:44 +01:00
parent c812efb99b
commit 3437675c7d
1 changed files with 8 additions and 0 deletions

View File

@ -683,6 +683,14 @@ begin
if '/usr/include/dmd/phobos'.dirExists then
fPaths.DmdPhobosPath:='/usr/include/dmd/phobos';
{$ENDIF}
{$IFDEF BSD}
if '%%LOCALBASE%%/bin/dmd'.fileExists then
fPaths.DmdExeName:='%%LOCALBASE%%/bin/dmd';
if '%%LOCALBASE%%/include/dmd/druntime/import'.dirExists then
fPaths.DmdRuntimePath:='%%LOCALBASE%%/include/dmd/druntime/import';
if '%%LOCALBASE%%/include/dmd/phobos'.dirExists then
fPaths.DmdPhobosPath:='%%LOCALBASE%%/include/dmd/phobos';
{$ENDIF}
{$IFDEF DARWIN}
if '/usr/local/bin/dmd'.fileExists then
fPaths.DmdExeName:='/usr/local/bin/dmd';