* configure: Pass gcc's host machine string to the jam build system.

* BuildSetup: Set jam variable HOST_PLATFORM_IS_64_BIT and add host define
  HAIKU_HOST_PLATFORM_64_BIT if the host platform is 64 bit. Removed the
  check from BeOSBuildCompatibility.h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34211 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-11-24 18:57:49 +00:00
parent 15fe75b9a0
commit a85cf9d793
3 changed files with 14 additions and 5 deletions
+12 -1
View File
@@ -478,9 +478,15 @@ HAIKU_BUILD_DESCRIPTION ?= "Unknown Build" ;
# host platform settings # host platform settings
# enable GCC -m32 option, if requested # analyze the host gcc machine spec to find out about 64-bitness
HOST_PLATFORM_IS_64_BIT = ;
if $(HAIKU_HOST_USE_32BIT) = 1 { if $(HAIKU_HOST_USE_32BIT) = 1 {
# enable GCC -m32 option
HOST_GCC_BASE_FLAGS = -m32 ; HOST_GCC_BASE_FLAGS = -m32 ;
} else {
switch $(HOST_GCC_MACHINE) {
case x86_64-* : HOST_PLATFORM_IS_64_BIT = 1 ;
}
} }
@@ -531,6 +537,7 @@ HOST_CPU ?= $(OSPLAT:L) ;
HOST_ARCH ?= $(HOST_CPU) ; HOST_ARCH ?= $(HOST_CPU) ;
HOST_ARCH_MACRO_DEFINE = ARCH_$(HOST_CPU) ; HOST_ARCH_MACRO_DEFINE = ARCH_$(HOST_CPU) ;
# directories # directories
HOST_OBJECT_BASE_DIR = [ FDirName $(HAIKU_OBJECT_DIR) $(HOST_PLATFORM) ] ; HOST_OBJECT_BASE_DIR = [ FDirName $(HAIKU_OBJECT_DIR) $(HOST_PLATFORM) ] ;
HOST_COMMON_ARCH_OBJECT_DIR = [ FDirName $(HOST_OBJECT_BASE_DIR) common ] ; HOST_COMMON_ARCH_OBJECT_DIR = [ FDirName $(HOST_OBJECT_BASE_DIR) common ] ;
@@ -926,6 +933,10 @@ switch $(HOST_PLATFORM) {
case sunos : HOST_DEFINES += HAIKU_HOST_PLATFORM_SUNOS ; case sunos : HOST_DEFINES += HAIKU_HOST_PLATFORM_SUNOS ;
} }
# define host platform 64 bit macro
if $(HOST_PLATFORM_IS_64_BIT) {
HOST_DEFINES += HAIKU_HOST_PLATFORM_64_BIT ;
}
#pragma mark - #pragma mark -
Vendored
+2
View File
@@ -266,6 +266,7 @@ haikuStaticLibSupCxx=
haikuSharedLibSupCxx= haikuSharedLibSupCxx=
haikuCxxHeadersDir= haikuCxxHeadersDir=
hostGCCVersion=`gcc -dumpversion` hostGCCVersion=`gcc -dumpversion`
hostGCCMachine=`gcc -dumpmachine`
bochsDebug=0 bochsDebug=0
includeGPLAddOns=0 includeGPLAddOns=0
includePatentedCode=0 includePatentedCode=0
@@ -513,6 +514,7 @@ HAIKU_ARFLAGS ?= ${HAIKU_ARFLAGS} ;
HAIKU_UNARFLAGS ?= ${HAIKU_UNARFLAGS} ; HAIKU_UNARFLAGS ?= ${HAIKU_UNARFLAGS} ;
HOST_GCC_RAW_VERSION ?= ${hostGCCVersion} ; HOST_GCC_RAW_VERSION ?= ${hostGCCVersion} ;
HOST_GCC_MACHINE ?= ${hostGCCMachine} ;
EOF EOF
-4
View File
@@ -36,10 +36,6 @@ typedef unsigned long haiku_build_addr_t;
#include <sys/types.h> #include <sys/types.h>
#include <sys/uio.h> #include <sys/uio.h>
#ifdef __x86_64__
#define HAIKU_HOST_PLATFORM_64_BIT
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif