mirror of
https://github.com/boostorg/context.git
synced 2026-01-23 17:32:16 +00:00
Lift architecture detection
This commit is contained in:
@@ -12,7 +12,6 @@ import indirect ;
|
|||||||
import modules ;
|
import modules ;
|
||||||
import os ;
|
import os ;
|
||||||
import toolset ;
|
import toolset ;
|
||||||
import architecture ;
|
|
||||||
|
|
||||||
feature.feature segmented-stacks : on : optional propagated composite ;
|
feature.feature segmented-stacks : on : optional propagated composite ;
|
||||||
feature.compose <segmented-stacks>on : <define>BOOST_USE_SEGMENTED_STACKS ;
|
feature.compose <segmented-stacks>on : <define>BOOST_USE_SEGMENTED_STACKS ;
|
||||||
@@ -836,13 +835,6 @@ alias asm_context_sources
|
|||||||
|
|
||||||
explicit asm_context_sources ;
|
explicit asm_context_sources ;
|
||||||
|
|
||||||
alias select_asm_context_sources
|
|
||||||
: asm_context_sources
|
|
||||||
: [ architecture.architecture ]
|
|
||||||
[ architecture.address-model ]
|
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
alias stack_traits_sources
|
alias stack_traits_sources
|
||||||
: windows/stack_traits.cpp
|
: windows/stack_traits.cpp
|
||||||
: <target-os>windows
|
: <target-os>windows
|
||||||
@@ -856,7 +848,7 @@ explicit stack_traits_sources ;
|
|||||||
|
|
||||||
|
|
||||||
lib boost_context
|
lib boost_context
|
||||||
: select_asm_context_sources
|
: asm_context_sources
|
||||||
stack_traits_sources
|
stack_traits_sources
|
||||||
execution_context.cpp
|
execution_context.cpp
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
// 32.cpp
|
|
||||||
//
|
|
||||||
// Copyright (c) 2012 Steven Watanabe
|
|
||||||
//
|
|
||||||
// Distributed under the Boost Software License Version 1.0. (See
|
|
||||||
// accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
|
|
||||||
int test[sizeof(void*) == 4? 1 : -1];
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
// 64.cpp
|
|
||||||
//
|
|
||||||
// Copyright (c) 2012 Steven Watanabe
|
|
||||||
//
|
|
||||||
// Distributed under the Boost Software License Version 1.0. (See
|
|
||||||
// accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
|
|
||||||
int test[sizeof(void*) == 8? 1 : -1];
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# Jamfile.jam
|
|
||||||
#
|
|
||||||
# Copyright 2012 Steven Watanabe
|
|
||||||
#
|
|
||||||
# Distributed under the Boost Software License Version 1.0. (See
|
|
||||||
# accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
# http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
|
|
||||||
project /boost/architecture ;
|
|
||||||
|
|
||||||
obj 32 : 32.cpp ;
|
|
||||||
obj 64 : 64.cpp ;
|
|
||||||
|
|
||||||
obj arm : arm.cpp ;
|
|
||||||
obj combined : combined.cpp ;
|
|
||||||
obj mips1 : mips1.cpp ;
|
|
||||||
obj power : power.cpp ;
|
|
||||||
obj sparc : sparc.cpp ;
|
|
||||||
obj x86 : x86.cpp ;
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
// arm.cpp
|
|
||||||
//
|
|
||||||
// Copyright (c) 2012 Steven Watanabe
|
|
||||||
//
|
|
||||||
// Distributed under the Boost Software License Version 1.0. (See
|
|
||||||
// accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
|
|
||||||
#if !defined(__aarch64__) && !defined(__arm__) && !defined(__thumb__) && \
|
|
||||||
!defined(__TARGET_ARCH_ARM) && !defined(__TARGET_ARCH_THUMB) && \
|
|
||||||
!defined(_ARM) && !defined(_M_ARM)
|
|
||||||
#error "Not ARM"
|
|
||||||
#endif
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
// combined.cpp
|
|
||||||
//
|
|
||||||
// Copyright (c) 2012 Steven Watanabe
|
|
||||||
// 2014 Oliver Kowalke
|
|
||||||
//
|
|
||||||
// Distributed under the Boost Software License Version 1.0. (See
|
|
||||||
// accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
|
|
||||||
#if !defined(i386) && !defined(__i386__) && !defined(__i386) \
|
|
||||||
&& !defined(__i486__) && !defined(__i586__) && !defined(__i686__) \
|
|
||||||
&& !defined(_M_IX86) && !defined(__X86__) && !defined(_X86_) \
|
|
||||||
&& !defined(__THW_INTEL__) && !defined(__I86__) && !defined(__INTEL__) \
|
|
||||||
&& !defined(__amd64__) && !defined(__x86_64__) && !defined(__amd64) \
|
|
||||||
&& !defined(__x86_64) && !defined(_M_X64) \
|
|
||||||
&& !defined(__powerpc) && !defined(__powerpc__) && !defined(__ppc) \
|
|
||||||
&& !defined(__ppc__) && !defined(_M_PPC) && !defined(_ARCH_PPC) \
|
|
||||||
&& !defined(__POWERPC__) && !defined(__PPCGECKO__) \
|
|
||||||
&& !defined(__PPCBROADWAY) && !defined(_XENON)
|
|
||||||
#error "Not combined"
|
|
||||||
#endif
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
// mips1.cpp
|
|
||||||
//
|
|
||||||
// Copyright (c) 2012 Steven Watanabe
|
|
||||||
//
|
|
||||||
// Distributed under the Boost Software License Version 1.0. (See
|
|
||||||
// accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
|
|
||||||
#if !((defined(__mips) && __mips == 1) || defined(_MIPS_ISA_MIPS1) || defined(_R3000))
|
|
||||||
#error "Not MIPS1"
|
|
||||||
#endif
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
// power.cpp
|
|
||||||
//
|
|
||||||
// Copyright (c) 2012 Steven Watanabe
|
|
||||||
//
|
|
||||||
// Distributed under the Boost Software License Version 1.0. (See
|
|
||||||
// accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
|
|
||||||
#if !defined(__powerpc) && !defined(__powerpc__) && !defined(__ppc) \
|
|
||||||
&& !defined(__ppc__) && !defined(_M_PPC) && !defined(_ARCH_PPC) \
|
|
||||||
&& !defined(__POWERPC__) && !defined(__PPCGECKO__) \
|
|
||||||
&& !defined(__PPCBROADWAY) && !defined(_XENON)
|
|
||||||
#error "Not PPC"
|
|
||||||
#endif
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
// power.cpp
|
|
||||||
//
|
|
||||||
// Copyright (c) 2012 Steven Watanabe
|
|
||||||
//
|
|
||||||
// Distributed under the Boost Software License Version 1.0. (See
|
|
||||||
// accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
|
|
||||||
#if !defined(__sparc__) && !defined(__sparc)
|
|
||||||
#error "Not SPARC"
|
|
||||||
#endif
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
// x86.cpp
|
|
||||||
//
|
|
||||||
// Copyright (c) 2012 Steven Watanabe
|
|
||||||
//
|
|
||||||
// Distributed under the Boost Software License Version 1.0. (See
|
|
||||||
// accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
|
|
||||||
#if !defined(i386) && !defined(__i386__) && !defined(__i386) \
|
|
||||||
&& !defined(__i486__) && !defined(__i586__) && !defined(__i686__) \
|
|
||||||
&& !defined(_M_IX86) && !defined(__X86__) && !defined(_X86_) \
|
|
||||||
&& !defined(__THW_INTEL__) && !defined(__I86__) && !defined(__INTEL__) \
|
|
||||||
&& !defined(__amd64__) && !defined(__x86_64__) && !defined(__amd64) \
|
|
||||||
&& !defined(__x86_64) && !defined(_M_X64)
|
|
||||||
#error "Not x86"
|
|
||||||
#endif
|
|
||||||
Reference in New Issue
Block a user