diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-05-25 12:00:45 -0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-05-25 12:00:45 -0400 |
commit | 03e9b201c88d9ab11217851410a049c7efbd5dc0 (patch) | |
tree | 5a7bd32133b16778b46617c2d89288c223af8800 /jam-files | |
parent | b9a3229520530cc382542456d2bd07d8707c5998 (diff) |
Force multi-threaded build if only multi-threaded Boost is present.
Diffstat (limited to 'jam-files')
-rw-r--r-- | jam-files/sanity.jam | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/jam-files/sanity.jam b/jam-files/sanity.jam index 2a5fc381..4e0432f9 100644 --- a/jam-files/sanity.jam +++ b/jam-files/sanity.jam @@ -87,6 +87,8 @@ else { boost-include = ; } } + +requirements = ; #Are we linking static binaries against shared boost? boost-auto-shared = [ auto-shared "boost_program_options" : $(L-boost-search) ] ; @@ -96,8 +98,15 @@ rule boost-lib ( name macro ) { #versions of boost do not have -mt tagged versions of all libraries. Sadly, #boost.jam does not handle this correctly. if [ test_flags $(L-boost-search)" -lboost_"$(name)"-mt" ] { - lib inner_boost_$(name) : : <threading>single $(boost-search) <name>boost_$(name) ; - lib inner_boost_$(name) : : <threading>multi $(boost-search) <name>boost_$(name)-mt ; +# if [ test_flags $(L-boost-search)" -lboost_"$(name) ] { +# lib inner_boost_$(name) : : <threading>single $(boost-search) <name>boost_$(name) ; +# lib inner_boost_$(name) : : <threading>multi $(boost-search) <name>boost_$(name)-mt ; +# } else { + if ! <threading>multi in $(requirements) { + requirements += <threading>multi ; + } + lib inner_boost_$(name) : : <threading>multi $(boost-search) <name>boost_$(name)-mt ; +# } } else { lib inner_boost_$(name) : : $(boost-search) <name>boost_$(name) ; } @@ -149,7 +158,6 @@ rule external-lib ( name : search-path * ) { local ignored = @($(build-log):E=$(script)) ; } -requirements = ; { #Boost jam's static clang is buggy. requirements += <cxxflags>$(cxxflags) <cflags>$(cflags) <linkflags>$(ldflags) <toolset>clang:<link>shared ; |