* SUBTARGET defines

This commit is contained in:
Michaël Van Canneyt 2023-12-24 15:08:06 +01:00
parent 126cc09037
commit 124834fe29

View File

@ -4279,7 +4279,8 @@ procedure TPas2jsCompiler.SetSubTarget(AValue: String);
begin
if FSubTarget=AValue then Exit;
FSubTarget:=AValue;
//
AddDefine('FPC_SUBTARGET',UPPERCASE(aValue));
AddDefine('FPC_SUBTARGET_'+UPPERCASE(aValue));
end;
function TPas2jsCompiler.CreateImportList: TJSSourceElements;