mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 05:49:12 +02:00
* properly quote pathes for objcopy calls, resolves #35072
git-svn-id: trunk@41324 -
This commit is contained in:
parent
d55f1b69c0
commit
e3546cf5af
@ -1311,12 +1311,12 @@ begin
|
|||||||
if success and (target_info.system in [system_arm_embedded,system_avr_embedded,system_mipsel_embedded]) then
|
if success and (target_info.system in [system_arm_embedded,system_avr_embedded,system_mipsel_embedded]) then
|
||||||
begin
|
begin
|
||||||
success:=DoExec(FindUtil(utilsprefix+'objcopy'),'-O ihex '+
|
success:=DoExec(FindUtil(utilsprefix+'objcopy'),'-O ihex '+
|
||||||
ChangeFileExt(current_module.exefilename,'.elf')+' '+
|
maybequoted(ScriptFixFileName(ChangeFileExt(current_module.exefilename,'.elf')))+' '+
|
||||||
ChangeFileExt(current_module.exefilename,'.hex'),true,false);
|
maybequoted(ScriptFixFileName(ChangeFileExt(current_module.exefilename,'.hex'))),true,false);
|
||||||
if success then
|
if success then
|
||||||
success:=DoExec(FindUtil(utilsprefix+'objcopy'),'-O binary '+
|
success:=DoExec(FindUtil(utilsprefix+'objcopy'),'-O binary '+
|
||||||
ChangeFileExt(current_module.exefilename,'.elf')+' '+
|
maybequoted(ScriptFixFileName(ChangeFileExt(current_module.exefilename,'.elf')))+' '+
|
||||||
ChangeFileExt(current_module.exefilename,'.bin'),true,false);
|
maybequoted(ScriptFixFileName(ChangeFileExt(current_module.exefilename,'.bin'))),true,false);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
MakeExecutable:=success; { otherwise a recursive call to link method }
|
MakeExecutable:=success; { otherwise a recursive call to link method }
|
||||||
|
Loading…
Reference in New Issue
Block a user