|
@@ -102,7 +102,7 @@ begin
|
|
Params.Assign(SharedParams);
|
|
Params.Assign(SharedParams);
|
|
if FirstRunParams<>nil then
|
|
if FirstRunParams<>nil then
|
|
Params.AddStrings(FirstRunParams);
|
|
Params.AddStrings(FirstRunParams);
|
|
- Compile([MainFile,'-Jc','-Fu'+UnitPaths,'-JU'+PCUFormat.Ext,'-FU'+UnitOutputDir]);
|
|
|
|
|
|
+ Compile([MainFile,'-Jc','-Fu'+UnitPaths,'-JU'+PCUFormat.Ext,'-FU'+UnitOutputDir,'-Jminclude']);
|
|
AssertFileExists(UnitOutputDir+'/system.'+PCUFormat.Ext);
|
|
AssertFileExists(UnitOutputDir+'/system.'+PCUFormat.Ext);
|
|
JSFilename:=UnitOutputDir+PathDelim+ExtractFilenameOnly(MainFile)+'.js';
|
|
JSFilename:=UnitOutputDir+PathDelim+ExtractFilenameOnly(MainFile)+'.js';
|
|
AssertFileExists(JSFilename);
|
|
AssertFileExists(JSFilename);
|
|
@@ -119,7 +119,7 @@ begin
|
|
Params.Assign(SharedParams);
|
|
Params.Assign(SharedParams);
|
|
if SecondRunParams<>nil then
|
|
if SecondRunParams<>nil then
|
|
Params.AddStrings(SecondRunParams);
|
|
Params.AddStrings(SecondRunParams);
|
|
- Compile([MainFile,'-Jc','-FU'+UnitOutputDir],ExpExitCode);
|
|
|
|
|
|
+ Compile([MainFile,'-Jc','-FU'+UnitOutputDir,'-Jminclude'],ExpExitCode);
|
|
if ExpExitCode=0 then
|
|
if ExpExitCode=0 then
|
|
begin
|
|
begin
|
|
NewSrc:=JSFile.Source;
|
|
NewSrc:=JSFile.Source;
|