Clean define to differentiate ARM Macs from INTEL Macs

Hello,

What is the reliable define to to differentiate ARM Macs from INTEL Macs please?

Thanks :slight_smile:

JUCE_ARM and JUCE_INTEL will differentiate between architectures at build time - however, Intel code can run on Arm machines under Rosetta 2 so this won’t tell you whether the code is being executed on an Arm machine.

Some techniques for detecting Rosetta 2 are discussed here: Is there any check to see if a plugin is run under Rosetta 2? - #3 by chkn

1 Like