mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 19:29:26 +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
|
||||
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
|
||||
If ATarget.Mode<>cmFPC then
|
||||
Args.Add('-M'+ModeToString(ATarget.Mode))
|
||||
|
Loading…
Reference in New Issue
Block a user