mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 10:39:33 +02:00
* Set subtarget define as soon as -t option is parsed
This commit is contained in:
parent
e076c6fc59
commit
f232009010
@ -4277,7 +4277,8 @@ procedure TPas2jsCompiler.SetSubTarget(AValue: String);
|
||||
begin
|
||||
if FSubTarget=AValue then Exit;
|
||||
FSubTarget:=AValue;
|
||||
//
|
||||
AddDefine('FPC_SUBTARGET',SubTarget);
|
||||
AddDefine('FPC_SUBTARGET_'+Uppercase(SubTarget));
|
||||
end;
|
||||
|
||||
function TPas2jsCompiler.CreateImportList: TJSSourceElements;
|
||||
@ -4611,8 +4612,10 @@ begin
|
||||
AddDefine('STR_CONCAT_PROCS');
|
||||
AddDefine('UNICODE');
|
||||
if SubTarget<>'' then
|
||||
begin
|
||||
AddDefine('FPC_SUBTARGET',SubTarget);
|
||||
|
||||
AddDefine('FPC_SUBTARGET_'+Uppercase(SubTarget));
|
||||
end;
|
||||
FHasShownLogo:=false;
|
||||
FHasShownEncoding:=false;
|
||||
FFS.Reset;
|
||||
|
Loading…
Reference in New Issue
Block a user