Basic infrastructure for native x86_64 builds

Let scons link directly in the build folder.
Multiple archs can coexist next to each other.
New scons variable "X86" to cross compile x86 binaries on x86_64.
This commit is contained in:
dhewg 2011-12-01 10:36:59 +01:00 committed by Daniel Gibson
parent fc5f9ed56b
commit 66c740b405
2 changed files with 7 additions and 1 deletions

View file

@ -93,6 +93,7 @@ If you have questions concerning this license or the applicable additional terms
#define NDEBUG
#endif
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>

View file

@ -103,11 +103,16 @@ If you have questions concerning this license or the applicable additional terms
// Linux
#ifdef __linux__
#define BUILD_OS_ID 2
#ifdef __i386__
#define BUILD_STRING "linux-x86"
#define BUILD_OS_ID 2
#define CPUSTRING "x86"
#define CPU_EASYARGS 1
#elif defined(__x86_64__)
#define BUILD_STRING "linux-x86_64"
#define CPUSTRING "x86_64"
#define CPU_EASYARGS 0
#elif defined(__ppc__)
#define BUILD_STRING "linux-ppc"
#define CPUSTRING "ppc"