[LLVMdev] linux mixed 32/64 systems

Nick Lewycky nicholas at mxc.ca
Mon Mar 9 20:25:46 PDT 2009


Currently the build systems sets ARCH based on the result of 'uname -m'. 
On a mixed 32/64 system (one with a 64-bit kernel and a 32-bit 
userspace) this will result in "x86_64" which is wrong.

We'd like the ARCH variable to represent the userspace we're compiling 
in/for, not what the kernel happens to be.

Does anyone know of a clean way to detect this sort of system configuration?

Thanks,
Nick Lewycky



More information about the llvm-dev mailing list