Explorar o código

* don't try to post-process embedded executables when linking is
disabled

git-svn-id: trunk@25851 -

Jonas Maebe %!s(int64=11) %!d(string=hai) anos
pai
achega
40eafc3d82
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/systems/t_embed.pas

+ 1 - 1
compiler/systems/t_embed.pas

@@ -854,7 +854,7 @@ begin
    DeleteFile(outputexedir+Info.ResName);
 
 { Post process }
-  if success then
+  if success and not(cs_link_nolink in current_settings.globalswitches) then
     success:=PostProcessExecutable(current_module.exefilename+'.elf',false);
 
   if success and (target_info.system in [system_arm_embedded,system_avr_embedded]) then