|
@@ -256,6 +256,9 @@ interface
|
|
outputfilename : string;
|
|
outputfilename : string;
|
|
outputprefix : pshortstring;
|
|
outputprefix : pshortstring;
|
|
outputsuffix : pshortstring;
|
|
outputsuffix : pshortstring;
|
|
|
|
+ { selected subtarget }
|
|
|
|
+ subtarget : string;
|
|
|
|
+
|
|
{ specified with -FE or -FU }
|
|
{ specified with -FE or -FU }
|
|
outputexedir : TPathStr;
|
|
outputexedir : TPathStr;
|
|
outputunitdir : TPathStr;
|
|
outputunitdir : TPathStr;
|
|
@@ -996,6 +999,8 @@ implementation
|
|
if (tf_use_8_3 in Source_Info.Flags) or
|
|
if (tf_use_8_3 in Source_Info.Flags) or
|
|
(tf_use_8_3 in Target_Info.Flags) then
|
|
(tf_use_8_3 in Target_Info.Flags) then
|
|
Replace(s,'$FPCTARGET',target_os_string)
|
|
Replace(s,'$FPCTARGET',target_os_string)
|
|
|
|
+ else if subtarget<>'' then
|
|
|
|
+ Replace(s,'$FPCTARGET',target_full_string+'-'+lower(subtarget))
|
|
else
|
|
else
|
|
Replace(s,'$FPCTARGET',target_full_string);
|
|
Replace(s,'$FPCTARGET',target_full_string);
|
|
Replace(s,'$FPCSUBARCH',lower(cputypestr[init_settings.cputype]));
|
|
Replace(s,'$FPCSUBARCH',lower(cputypestr[init_settings.cputype]));
|