mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
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:
@ -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 ]
|
||||
|
Reference in New Issue
Block a user