Jump to content
vfbb

Delphi 11 - Is MACOS defined in OSXARM64 platform?

Recommended Posts

According to the Alexandria docwiki, the new OSXARM64 platform is defined for OSX directive but not defined for MACOS directive, which doesn't make sense since MACOS directive has always been defined for OSX and iOS.

 

image.thumb.png.b59a92054097fc829052a9183ac9f752.png

 

Unfortunately I don't have any mac arm to confirm. Can anyone confirm this?

Edited by vfbb

Share this post


Link to post
4 hours ago, vfbb said:

Unfortunately I don't have any mac arm to confirm.

You don't need mac to compile units. Just use command line compiler to compile this unit:

unit def;
interface
implementation
{$if defined(MACOS)}
 {$message hint 'MACOS defined'}
{$endif}
end.

 

  • Thanks 1

Share this post


Link to post

@Kazantsev Alexey Truth! It didn't cross my mind to use compile time messages.

 

I took the test and confirmed the suspicion. MACOS is defined in OSXARM64. Docwiki is wrong.

Issue reported.

Edited by vfbb

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×