mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-14 19:39:23 +02:00
pastojs: fixed diable optimization using fpc syntax prepend No, issue 38045
This commit is contained in:
parent
465e01eac9
commit
3dfa40f9a8
@ -3756,6 +3756,10 @@ begin
|
||||
begin
|
||||
Enable:=c='+';
|
||||
Delete(aValue,length(aValue),1);
|
||||
end
|
||||
else if lowercase(LeftStr(aValue,2))='no' then begin
|
||||
Enable:=false;
|
||||
Delete(aValue,1,2);
|
||||
end;
|
||||
Case LowerCase(aValue) of
|
||||
'enumnumbers': SetOption(coEnumValuesAsNumbers,Enable);
|
||||
@ -4738,7 +4742,8 @@ begin
|
||||
w(' -OoEnumNumbers[-]: write enum value as number instead of name. Default in -O1.');
|
||||
w(' -OoRemoveNotUsedPrivates[-]: Default is enabled');
|
||||
w(' -OoRemoveNotUsedDeclarations[-]: Default enabled for programs with -Jc');
|
||||
w(' -OoShortRefGlobals[-]: Insert JS local var for types and modules. Default enabled in -O2');
|
||||
w(' -OoRemoveNotUsedPublished[-] : Default is disabled');
|
||||
w(' -OoShortRefGlobals[-]: Insert JS local var for types, modules and static functions. Default enabled in -O2');
|
||||
w(' -P<x> : Set target processor. Case insensitive:');
|
||||
w(' -Pecmascript5: default');
|
||||
w(' -Pecmascript6');
|
||||
|
@ -198,7 +198,7 @@ Put + after a boolean switch option to enable it, - to disable it
|
||||
-OoRemoveNotUsedPrivates[-] : Default is enabled
|
||||
-OoRemoveNotUsedDeclarations[-] : Default enabled for programs with -Jc
|
||||
-OoRemoveNotUsedPublished[-] : Default is disabled
|
||||
-OoShortRefGlobals[-]: Insert JS local var for types and modules. Default enabled in -O2
|
||||
-OoShortRefGlobals[-]: Insert JS local var for types, modules and static functions. Default enabled in -O2
|
||||
-P<x> : Set target processor. Case insensitive:
|
||||
-Pecmascript5 : default
|
||||
-Pecmascript6
|
||||
|
Loading…
Reference in New Issue
Block a user