Using i386 is more likely to depend on the compiler and will not detect 32-bit non x86 arches. Assuming that the python interpreter used by scons runs on the processor of interest to you (not always in the case of cross-compilation), you can simply use python itself.
import platform print platform.machine() print platform.architecture()
If you need something more complex, then you may have to write your own customization function, but it's better to deal with it directly in your code.
source share