
#          Copyright Oliver Kowalke 2009.
# 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)

# For more information, see http://www.boost.org/

import common ;
import feature ;
import indirect ;
import modules ;
import os ;
import toolset ;

project boost/fiber/performance/fiber
    : requirements
      <library>/boost/fiber//boost_fiber
      <library>/boost/fiber//boost_fiber_numa
      <target-os>solaris:<linkflags>"-llgrp"
      <target-os>windows:<define>_WIN32_WINNT=0x0601
      <target-os>linux,<toolset>gcc,<segmented-stacks>on:<cxxflags>-fsplit-stack
      <target-os>linux,<toolset>gcc,<segmented-stacks>on:<cxxflags>-DBOOST_USE_SEGMENTED_STACKS
      <toolset>clang,<segmented-stacks>on:<cxxflags>-fsplit-stack
      <toolset>clang,<segmented-stacks>on:<cxxflags>-DBOOST_USE_SEGMENTED_STACKS
      <link>static
      <numa>on
      <threading>multi
      <optimization>speed
      <variant>release
    ;

exe skynet_join :
    skynet_join.cpp ;

exe skynet_detach :
    skynet_detach.cpp ;

exe skynet_shared_join :
    skynet_shared_join.cpp ;

exe skynet_shared_detach :
    skynet_shared_detach.cpp ;

exe skynet_stealing_join :
    skynet_stealing_join.cpp ;

exe skynet_stealing_detach :
    skynet_stealing_detach.cpp ;

exe skynet_stealing_async :
    skynet_stealing_async.cpp ;
