Compiler directives for ARM64

There does not appear to be a compiler directive that tests for compilation of ARM64 (M1) builds. I have a number of plugins that will not work on the M1 processor and I need to compile my universal app to avoid sections of code. Is there a way to do this?

Also, is it possible to compile for ARM64 and ARM64 alone? Would that even be possible?

#if TargetARM and TargetMacOS


Gives you what you are asking for if I understand your question right.

I think this will work! Thanks!

Yes. In the macOS target, select ARM.