mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 07:06:08 +02:00
* Pass the target-CPU to fpc.
git-svn-id: trunk@20066 -
This commit is contained in:
parent
a26f1d9dd3
commit
1499ba9caf
@ -4590,6 +4590,11 @@ begin
|
|||||||
// Target OS
|
// Target OS
|
||||||
Args.Add('-T'+OSToString(Defaults.OS));
|
Args.Add('-T'+OSToString(Defaults.OS));
|
||||||
|
|
||||||
|
// Target CPU.
|
||||||
|
// This setting is only applicable when 'fpc' is used as compiler-executable.
|
||||||
|
if ExtractFileName(GetCompiler) = 'fpc' then
|
||||||
|
Args.Add('-P'+CPUToString(Defaults.CPU));
|
||||||
|
|
||||||
// Compile mode
|
// Compile mode
|
||||||
If ATarget.Mode<>cmFPC then
|
If ATarget.Mode<>cmFPC then
|
||||||
Args.Add('-M'+ModeToString(ATarget.Mode))
|
Args.Add('-M'+ModeToString(ATarget.Mode))
|
||||||
|
Loading…
Reference in New Issue
Block a user