Browse Source

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

Jonas Maebe 2 years ago
parent
commit
b150480c60
1 changed files with 1 additions and 1 deletions
  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 }