From 03a33c21378c2649a06387d47049e18a4b93d720 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 24 Apr 2019 00:47:20 +0200 Subject: [PATCH] fixed 'Boolean expected' error u_compilers.pas(768,6) Error: Incompatible types: got "Constant String" expected "Boolean" --- src/u_compilers.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/u_compilers.pas b/src/u_compilers.pas index e7e23646..9b094bf6 100644 --- a/src/u_compilers.pas +++ b/src/u_compilers.pas @@ -765,7 +765,7 @@ begin {$IFDEF DARWIN} if '/usr/local/bin/dmd'.fileExists then fPaths.DmdExeName:='/usr/local/bin/dmd'; - if '/Library/D/dmd/src/druntime/import' then + if '/Library/D/dmd/src/druntime/import'.dirExists then fPaths.DmdRuntimePath:='/Library/D/dmd/src/druntime/import'; if '/Library/D/dmd/src/phobos'.dirExists then fPaths.DmdPhobosPath:='/Library/D/dmd/src/phobos';