mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
* Fix setting initial compiler options for pas2js node project
git-svn-id: trunk@57325 -
This commit is contained in:
parent
765cc14f74
commit
499ddd57ef
@ -240,16 +240,16 @@ function TProjectPas2JSNodeJSApp.InitProject(AProject: TLazProject ): TModalResu
|
||||
var
|
||||
MainFile : TLazProjectFile;
|
||||
CompOpts : TLazCompilerOptions;
|
||||
|
||||
begin
|
||||
Result:=inherited InitProject(AProject);
|
||||
|
||||
MainFile:=AProject.CreateProjectFile('project1.lpr');
|
||||
MainFile.IsPartOfProject:=true;
|
||||
AProject.AddFile(MainFile,false);
|
||||
AProject.MainFileID:=0;
|
||||
CompOpts:=AProject.LazBuildModes.BuildModes[0].LazCompilerOptions;
|
||||
SetDefaultNodeJSCompileOptions(CompOpts);
|
||||
CompOpts.TargetFilename:='project1';
|
||||
SetDefaultNodeJSCompileOptions(AProject.LazCompilerOptions);
|
||||
|
||||
SetDefaultNodeRunParams(AProject.RunParameters.GetOrCreate('Default'));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user