Ignore:
Timestamp:
Feb 13, 2012, 7:21:04 PM (12 years ago)
Author:
chronos
Message:
  • Fixed: Distinguish between windows and linux long file name commandline handling.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/UCompilerC.pas

    r28 r29  
    66
    77uses
    8   Classes, SysUtils, FileUtil, UCompiler, Process;
     8  Classes, SysUtils, FileUtil, UCompiler, Process, Dialogs;
    99
    1010type
     
    124124    Process := TProcess.Create(nil);
    125125    Process.CurrentDirectory := ExtractFilePath(CompilerPath);
    126     Process.CommandLine := '"' + CompilerPath + '" "' + CompiledFile + '" -o ' +
    127       ExtractFilePath(CompiledFile) + ExtractFileNameOnly(CompiledFile) + CompiledExtension;
     126    Process.CommandLine := LongFileName(CompilerPath) + ' ' + LongFileName(CompiledFile) + ' -o ' +
     127      LongFileName(ExtractFilePath(CompiledFile) + ExtractFileNameOnly(CompiledFile) + CompiledExtension);
    128128    Process.Options := [poWaitOnExit];
    129129    Process.Execute;
Note: See TracChangeset for help on using the changeset viewer.