pastojs: fixed diable optimization using fpc syntax prepend No, issue 38045

This commit is contained in:
mattias 2020-11-07 10:25:55 +00:00
parent 465e01eac9
commit 3dfa40f9a8
2 changed files with 7 additions and 2 deletions

View File

@ -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');

View File

@ -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&lt;x&gt; : Set target processor. Case insensitive:
-Pecmascript5 : default
-Pecmascript6