From 53b162523f35ee9c2ba4c67e8fcbf59201d0f491 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 18 Sep 2013 15:26:35 +0200 Subject: [PATCH] Fix host-only build. --- build/jam/BuildSetup | 6 ++++-- build/jam/HelperRules | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup index f5a8295c91..1abbfe47b7 100644 --- a/build/jam/BuildSetup +++ b/build/jam/BuildSetup @@ -243,6 +243,7 @@ HOST_UNARFLAGS ?= x ; # check the host platform compatibility SetPlatformCompatibilityFlagVariables HOST_PLATFORM : HOST : host : linux openbsd freebsd darwin sunos cygwin ; +HOST_PLATFORM_(host)_COMPATIBLE = 1 ; if $(HOST_PLATFORM) = linux || $(HOST_PLATFORM) = freebsd || $(HOST_PLATFORM) = darwin || $(HOST_PLATFORM) = cygwin @@ -265,15 +266,16 @@ if $(HOST_PLATFORM) = cygwin { --enable-auto-import ; } -HOST_CPU ?= $(OSPLAT:L) ; +HOST_CPU ?= $(OSPLAT:L) ; # Jam doesn't know x86_64, so override HOST_CPU, if 64 bit. if $(HOST_CPU) = x86 && $(HOST_PLATFORM_IS_64_BIT) { HOST_CPU = x86_64 ; } -HOST_ARCH ?= $(HOST_CPU) ; +HOST_ARCH ?= $(HOST_CPU) ; HOST_ARCHS = $(HOST_ARCH) ; +HOST_KERNEL_ARCH = host ; # analyze GCC version HOST_GCC_VERSION = [ FAnalyzeGCCVersion HOST_GCC_RAW_VERSION ] ; diff --git a/build/jam/HelperRules b/build/jam/HelperRules index 45197038ae..31d05f2e43 100644 --- a/build/jam/HelperRules +++ b/build/jam/HelperRules @@ -207,6 +207,9 @@ rule SetPlatformCompatibilityFlagVariables $(varPrefix)_PLATFORM_HAIKU_COMPATIBLE = true ; } + case host : + # not compatible to anything + case * : { if ! ( $(platform) in $(otherPlatforms) ) {