better universal app support
Original Reporter info from Mantis: koda
-
Reporter name:
Original Reporter info from Mantis: koda
- Reporter name:
Description:
It's great that you can switch compiler target processor with -P. Then to create universal applications, right now you have to compile the executable for a given arch and then lipo them together.
It would be nice to have an integrated way directly in freepascal, either by specifying multiple -P or by listing all archs requested in some other way.
This would simplify creating universal apps in scripts and other build processes.
Steps to reproduce:
fpc -Px86_64 -Pi386 someproj.pas
-> a i386-only executable is created
fpc -Px86_64,i385 someproje.pas
-> Error: Illegal processor type "x86_64,i386"
Additional information:
One-line feature request:
fpc -Px86_64 -Pi386 someproj.pas
-> a universal x86_64 and i386 executable is created
Mantis conversion info:
- Mantis ID: 24127
- OS: Mac OS X
- OS Build: 10.6.8
- Platform: Intel x86_64