mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-21 20:21:19 +00:00
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:
parent
fc5f9ed56b
commit
66c740b405
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue