From b150480c60aff770924e4ffd3382132b189aba2d Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Wed, 12 Oct 2022 22:51:42 +0200 Subject: [PATCH] Darwin: don't try to print size statistics if the binary wasn't linked --- compiler/systems/t_darwin.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/systems/t_darwin.pas b/compiler/systems/t_darwin.pas index 2e003bdf05..81cd06ffe3 100644 --- a/compiler/systems/t_darwin.pas +++ b/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 }