diff --git a/compiler/systems/t_freertos.pas b/compiler/systems/t_freertos.pas
index 7003fac2f6..3a2ff5e6bd 100644
--- a/compiler/systems/t_freertos.pas
+++ b/compiler/systems/t_freertos.pas
@@ -1215,7 +1215,7 @@ begin
 
   Replace(cmdstr,'$IDF_PATH',idfpath);
   Replace(cmdstr,'$OUTPUT',outputexedir);
-  if success and not(cs_link_nolink in current_settings.globalswitches) then
+  if success then
     success:=DoExec(binstr,cmdstr,true,false);
 end;
 {$endif XTENSA}