* Pass the target-CPU to fpc.

git-svn-id: trunk@20066 -
This commit is contained in:
joost 2012-01-13 18:36:06 +00:00
parent a26f1d9dd3
commit 1499ba9caf

View File

@ -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))