Constant
TargetARM
Description
Used to indicate that you are compiling code for an ARM CPU, which also includes Apple Silicon (M1).
Usage
result = TargetARM
Part |
Type |
Description |
---|---|---|
result |
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. |
Notes
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
#Endif
Compatibility
All project types on all supported operating systems.
See also
DebugBuild, XojoVersion, XojoVersionString, TargetAndroid, TargetBigEndian, TargetDesktop, TargetLittleEndian, TargetLinux, TargetMachO, TargetMacOS, TargetMobile, TargetWeb, TargetWindows, TargetX86 constants; #If...#Endif statement.