Преглед изворни кода

* check target system instead of using an ifdef

git-svn-id: trunk@44394 -
Jonas Maebe пре 5 година
родитељ
комит
3b8979210d
1 измењених фајлова са 4 додато и 5 уклоњено
  1. 4 5
      compiler/systems/t_bsd.pas

+ 4 - 5
compiler/systems/t_bsd.pas

@@ -1067,11 +1067,10 @@ begin
 
 { Call linker }
   SplitBinCmd(Info.DllCmd[1],binstr,cmdstr);
-{$ifndef darwin}
-  Replace(cmdstr,'$EXE',maybequoted(current_module.sharedlibfilename));
-{$else darwin}
-  Replace(cmdstr,'$EXE',maybequoted(ExpandFileName(current_module.sharedlibfilename)));
-{$endif darwin}
+  if not(target_info.system in systems_darwin) then
+    Replace(cmdstr,'$EXE',maybequoted(current_module.sharedlibfilename))
+  else
+    Replace(cmdstr,'$EXE',maybequoted(ExpandFileName(current_module.sharedlibfilename)));
   Replace(cmdstr,'$OPT',Info.ExtraOptions);
   Replace(cmdstr,'$TARGET',targetstr);
   Replace(cmdstr,'$EMUL',EmulStr);