Changeset 43 for trunk/Target


Ignore:
Timestamp:
Feb 20, 2012, 7:50:23 AM (13 years ago)
Author:
chronos
Message:
  • Fixed: If executor is not specified then do not include their path in executed commandline.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Target/UTarget.pas

    r41 r43  
    372372  try
    373373    Text := FTargetCode;
    374     SaveToFile(CompiledFile);
     374    SaveToFile(UTF8Decode(CompiledFile));
    375375  finally
    376376    Free;
     
    399399  try
    400400    Process := TProcess.Create(nil);
    401     Process.CommandLine := LongFileName(ExecutorPath) + ' ' + LongFileName(CompiledFile);
     401    if ExecutorPath <> '' then Process.CommandLine := LongFileName(ExecutorPath) + ' ';
     402    Process.CommandLine := Process.CommandLine + LongFileName(CompiledFile);
    402403    Process.Options := [poWaitOnExit];
    403404    Process.Execute;
Note: See TracChangeset for help on using the changeset viewer.