mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 00:19:32 +02:00
codetools: pas2js: set fixed modeswitches
This commit is contained in:
parent
e9948b6fa4
commit
e8afecf3c7
@ -276,6 +276,8 @@ const
|
||||
cmsISOLike_Mod]
|
||||
);
|
||||
cmAllModesWithGeneric = [cmDELPHI,cmDELPHIUNICODE,cmOBJFPC];
|
||||
Pas2jsFixedModeswitches = [cmsArray2dynarray,cmsArrayOperators,
|
||||
cmsFunctionReferences,cmsAnonymousFunctions];
|
||||
|
||||
// upper case (see fpc/compiler/globtype.pas modeswitchstr )
|
||||
CompilerModeSwitchNames: array[TCompilerModeSwitch] of string=(
|
||||
@ -4666,6 +4668,8 @@ begin
|
||||
FCompilerMode:=AValue;
|
||||
OldModeSwitches:=FCompilerModeSwitches;
|
||||
FCompilerModeSwitches:=DefaultCompilerModeSwitches[CompilerMode];
|
||||
if FPascalCompiler=pcPas2js then
|
||||
FCompilerModeSwitches:=FCompilerModeSwitches+Pas2jsFixedModeswitches;
|
||||
FNestedComments:=cmsNested_comment in CompilerModeSwitches;
|
||||
Values.Variables[CompilerModeVars[FCompilerMode]]:='1';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user