Update Jamfile to check for -latomic

The config_test tests all require linking against -latomic
when GCC provides it in order to test for <atomic>.
Seems to be a new gcc-5.1.0 requirement.
This commit is contained in:
jzmaddock
2015-04-24 18:10:30 +01:00
parent a2ad620450
commit d7e258faf5

View File

@ -19,6 +19,11 @@ import ../checks/config : requires ;
local is_unix = [ modules.peek : UNIX ] ;
lib atomic ;
link config_info.cpp atomic : : has_atomic_lib ;
explicit has_atomic_lib ;
if $(is_unix)
{
local osname = [ SHELL uname ] ;
@ -38,6 +43,7 @@ test-suite config
: #input-files
: #requirements
<threading>multi
[ check-target-builds has_atomic_lib : <source>atomic ]
: config_test_threaded
]
[ run config_test.cpp
@ -48,6 +54,7 @@ test-suite config
<target-os>linux:<linkflags>-lpthread
<target-os>linux:<linkflags>-lrt
<toolset>gcc:<linkflags>$(OTHERFLAGS)
[ check-target-builds has_atomic_lib : <source>atomic ]
]
[ run config_test.cpp
: #args
@ -57,6 +64,7 @@ test-suite config
<target-os>linux:<linkflags>-lpthread
<target-os>linux:<linkflags>-lrt
<toolset>gcc:<linkflags>$(OTHERFLAGS)
[ check-target-builds has_atomic_lib : <source>atomic ]
: config_test_no_rtti
]
[ run config_test.cpp
@ -67,6 +75,7 @@ test-suite config
<target-os>linux:<linkflags>-lpthread
<target-os>linux:<linkflags>-lrt
<toolset>gcc:<linkflags>$(OTHERFLAGS)
[ check-target-builds has_atomic_lib : <source>atomic ]
: config_test_no_except
]
[ run config_info.cpp : : : <test-info>always_show_run_output <threading>single <toolset>msvc:<runtime-link>static <toolset>msvc:<link>static ]