From a03c3c66741e8777624b06039dfd1b3a715b51dd Mon Sep 17 00:00:00 2001 From: mattias Date: Sat, 26 May 2018 11:12:00 +0000 Subject: [PATCH] pas2js: targetfilename git-svn-id: trunk@58035 - --- components/pas2js/pjsdsgnregister.pas | 1 + components/pas2js/pjsprojectoptions.pp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/pas2js/pjsdsgnregister.pas b/components/pas2js/pjsdsgnregister.pas index 46b4940556..b69119dc1f 100644 --- a/components/pas2js/pjsdsgnregister.pas +++ b/components/pas2js/pjsdsgnregister.pas @@ -499,6 +499,7 @@ begin AProject.AddFile(MainFile,false); AProject.MainFileID:=0; SetDefaultWebCompileOptions(AProject.LazCompilerOptions); + AProject.LazCompilerOptions.TargetFilename:='project1'; SetDefaultWebRunParams(AProject.RunParameters.GetOrCreate('Default')); AProject.MainFile.SetSourceText(CreateProjectSource,true); AProject.CustomData.Values[PJSProjectWebBrowser]:='1'; diff --git a/components/pas2js/pjsprojectoptions.pp b/components/pas2js/pjsprojectoptions.pp index 59b2e6144f..166baf3ac3 100644 --- a/components/pas2js/pjsprojectoptions.pp +++ b/components/pas2js/pjsprojectoptions.pp @@ -108,7 +108,7 @@ begin CompOpts.CustomOptions:=CustomOpts; if PJSOptions.CompilerFilename='' then - Compiler:='$MakeExe(pas2js)' + Compiler:='$MakeExe(IDE,pas2js)' else Compiler:=PJSOptions.CompilerFilename; CompOpts.CompilerPath:=Compiler;