mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-24 18:31:28 +02:00
later: the same as i386/darwin, except
a) uses the non-fragile Objective-C ABI/runtime
b) does not require stubs for direct calls/jumps (not required for
i386/darwin under 10.6 and later either, but still generated
there for backwards compatibility)
c) only the same packages are enabled as for ARM/Darwin
d) MacOSAll is compiled specifically for the iPhoneSimulator SDK
This target also defines the symbol "darwin" apart from the target
name "iphonesim" for source code compatibility reasons.
git-svn-id: trunk@16065 -
20 lines
392 B
ObjectPascal
20 lines
392 B
ObjectPascal
|
|
unit objc;
|
|
|
|
{$ifdef darwin}
|
|
{$define targethandled}
|
|
{$if defined(iphonesim) or defined(cpuarm) or defined(cpux86_64) or defined(cpupowerpc64)}
|
|
{$i objcnf.inc}
|
|
{$endif}
|
|
|
|
{$if defined(cpupowerpc32) or (defined(cpui386) and not defined(iphonesim))}
|
|
{$define targethandled}
|
|
{$i objc1.inc}
|
|
{$endif}
|
|
{$endif}
|
|
|
|
|
|
{$ifndef targethandled}
|
|
{$error Target not yet supported for objc.pp unit}
|
|
{$endif}
|