浏览代码

Darwin: don't try to print size statistics if the binary wasn't linked

Jonas Maebe 2 年之前
父节点
当前提交
b150480c60
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/systems/t_darwin.pas

+ 1 - 1
compiler/systems/t_darwin.pas

@@ -589,7 +589,7 @@ implementation
        end;
 
      { Post process }
-     if success then
+     if success and not(cs_link_nolink in current_settings.globalswitches) then
        success:=PostProcessExecutable(current_module.exefilename,false);
 
       MakeExecutable:=success;   { otherwise a recursive call to link method }