From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/boost/libs/fiber/build/Jamfile.v2 | 148 ++++++++++++++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 src/boost/libs/fiber/build/Jamfile.v2 (limited to 'src/boost/libs/fiber/build') diff --git a/src/boost/libs/fiber/build/Jamfile.v2 b/src/boost/libs/fiber/build/Jamfile.v2 new file mode 100644 index 00000000..f62e2f0f --- /dev/null +++ b/src/boost/libs/fiber/build/Jamfile.v2 @@ -0,0 +1,148 @@ +# Boost.Fiber Library Build Jamfile + +# Copyright Oliver Kowalke 2013. +# 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) + +import feature ; +import modules ; +import testing ; +import toolset ; +import ../../config/checks/config : requires ; + +feature.feature numa : on : optional propagated composite ; +feature.compose on : BOOST_USE_NUMA ; + +project boost/fiber + : requirements + /boost/context//boost_context + /boost/filesystem//boost_filesystem + solaris:"-llgrp" + windows:_WIN32_WINNT=0x0601 + gcc,on:-fsplit-stack + gcc,on:-DBOOST_USE_SEGMENTED_STACKS + clang,on:-fsplit-stack + clang,on:-DBOOST_USE_SEGMENTED_STACKS + shared:BOOST_FIBERS_DYN_LINK=1 + BOOST_FIBERS_SOURCE + multi + : usage-requirements + shared:BOOST_FIBERS_DYN_LINK=1 + speed:BOOST_DISABLE_ASSERTS + release:BOOST_DISABLE_ASSERTS + : source-location ../src + ; + +rule numa ( properties * ) +{ + local result ; + if ( on in $(properties) ) + { + result = on ; + } + else + { + result = no ; + } + return $(result) ; +} + +lib boost_fiber + : algo/algorithm.cpp + algo/round_robin.cpp + algo/shared_work.cpp + algo/work_stealing.cpp + barrier.cpp + condition_variable.cpp + context.cpp + fiber.cpp + future.cpp + mutex.cpp + properties.cpp + recursive_mutex.cpp + recursive_timed_mutex.cpp + timed_mutex.cpp + scheduler.cpp + : shared:../../context/build//boost_context + [ requires cxx11_auto_declarations + cxx11_constexpr + cxx11_defaulted_functions + cxx11_final + cxx11_hdr_mutex + cxx11_hdr_tuple + cxx11_lambdas + cxx11_noexcept + cxx11_nullptr + cxx11_rvalue_references + cxx11_template_aliases + cxx11_thread_local + cxx11_variadic_templates ] + ; + + +alias numa_sources + : numa/aix/pin_thread.cpp + numa/aix/topology.cpp + : aix + ; + +alias numa_sources + : numa/freebsd/pin_thread.cpp + numa/freebsd/topology.cpp + : freebsd + ; + +alias numa_sources + : numa/hpux/pin_thread.cpp + numa/hpux/topology.cpp + : hpux + ; + +alias numa_sources + : numa/linux/pin_thread.cpp + numa/linux/topology.cpp + : linux + ; + +alias numa_sources + : numa/solaris/pin_thread.cpp + numa/solaris/topology.cpp + : solaris + ; + +alias numa_sources + : numa/windows/pin_thread.cpp + numa/windows/topology.cpp + : windows + ; + +alias numa_sources + : numa/pin_thread.cpp + numa/topology.cpp + ; + +explicit numa_sources ; + +lib boost_fiber_numa + : numa_sources + numa/algo/work_stealing.cpp + : + @numa + [ requires cxx11_auto_declarations + cxx11_constexpr + cxx11_defaulted_functions + cxx11_final + cxx11_hdr_mutex + cxx11_hdr_tuple + cxx11_lambdas + cxx11_noexcept + cxx11_nullptr + cxx11_rvalue_references + cxx11_template_aliases + cxx11_thread_local + cxx11_variadic_templates ] + ; + + +boost-install boost_fiber boost_fiber_numa ; -- cgit v1.2.3