danielheth wrote:
The problem is if i run my 32bit linux version on a system with a 64bit processor, it identifies as a 64bit
To clarify the reason behind it:
#PB_Compiler_Processor is set to 2 on x86 and to 4 on x64.
#PB_Processor_x86 is always set to 2.
#PB_Processor_x64 is always set to 4.
#PB_Compiler_Processor is intended to be compared to #PB_Processor_x86 or #PB_Processor_x64.
You wrote
Code: Select all
CompilerIf #PB_Processor_x64
vName = vName + "for Linux 64bit"
CompilerElse
vName = vName + "for Linux 32bit"
CompilerEndIf
which in turn means
Code: Select all
CompilerIf 4
vName = vName + "for Linux 64bit"
CompilerElse
vName = vName + "for Linux 32bit"
CompilerEndIf
4 is #True, so it was compiling the first code branch independently from the architecture you compiled the program on.
But for some reason you used the right approach for the OS instead ...
Code: Select all
CompilerIf #PB_Compiler_OS = #PB_OS_Windows