I’m using the following code within a pre-build script to determine if the (desktop) app is built as 32bit or 64bit application.
The problem: if I set the architecture to “x86 32bit” and try to compile, Target32Bit is not True.
If TargetARM Then Print(" targetARM = true") Else Print(" targetARM = false")
If TargetX86 Then Print(" targetX86 = true") Else Print(" targetX86 = false")
If Target32Bit Then Print(" target32bit = true") Else Print(" target32bit = false")
If Target64Bit Then Print(" target64bit = true") Else Print(" target64bit = false")
According to the documentation (Target32Bit and UserGuide - 64-Bit Guidelines) it should, isn’t it?
Does Target32Bit only work after the compilation (at run time within the app)?
Is Target32Bit not set before the build itself is started?
How would you determine if it is a 32 or 64bit application at the pre build script stage?