From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Constant As Boolean

aBoolean = TargetARM

Used to indicate that you are compiling code for an ARM CPU, which also includes Apple Silicon (M1).


result = TargetARM

Part Type Description
result Boolean Returns True if you are compiling or running for an ARM CPU, such as for the Raspberry Pi, macOS on Apple Silicon (M1) or iOS.


When building for Raspberry Pi, TargetLinux also returns True.

To detect Raspberry Pi, use these build constants:

#If TargetLinux And TargetARM And Target32bit Then
// Raspberry Pi

See Also

DebugBuild, XojoVersion, XojoVersionString, TargetBigEndian, TargetDesktop, TargetLittleEndian, TargetLinux, TargetMachO, TargetMacOS, TargetWeb, TargetWindows, TargetX86 constants; #If...#Endif statement.