forked from boostorg/config
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 ] ;
|
local is_unix = [ modules.peek : UNIX ] ;
|
||||||
|
|
||||||
|
lib atomic ;
|
||||||
|
|
||||||
|
link config_info.cpp atomic : : has_atomic_lib ;
|
||||||
|
explicit has_atomic_lib ;
|
||||||
|
|
||||||
if $(is_unix)
|
if $(is_unix)
|
||||||
{
|
{
|
||||||
local osname = [ SHELL uname ] ;
|
local osname = [ SHELL uname ] ;
|
||||||
@@ -38,6 +43,7 @@ test-suite config
|
|||||||
: #input-files
|
: #input-files
|
||||||
: #requirements
|
: #requirements
|
||||||
<threading>multi
|
<threading>multi
|
||||||
|
[ check-target-builds has_atomic_lib : <source>atomic ]
|
||||||
: config_test_threaded
|
: config_test_threaded
|
||||||
]
|
]
|
||||||
[ run config_test.cpp
|
[ run config_test.cpp
|
||||||
@@ -48,6 +54,7 @@ test-suite config
|
|||||||
<target-os>linux:<linkflags>-lpthread
|
<target-os>linux:<linkflags>-lpthread
|
||||||
<target-os>linux:<linkflags>-lrt
|
<target-os>linux:<linkflags>-lrt
|
||||||
<toolset>gcc:<linkflags>$(OTHERFLAGS)
|
<toolset>gcc:<linkflags>$(OTHERFLAGS)
|
||||||
|
[ check-target-builds has_atomic_lib : <source>atomic ]
|
||||||
]
|
]
|
||||||
[ run config_test.cpp
|
[ run config_test.cpp
|
||||||
: #args
|
: #args
|
||||||
@@ -57,6 +64,7 @@ test-suite config
|
|||||||
<target-os>linux:<linkflags>-lpthread
|
<target-os>linux:<linkflags>-lpthread
|
||||||
<target-os>linux:<linkflags>-lrt
|
<target-os>linux:<linkflags>-lrt
|
||||||
<toolset>gcc:<linkflags>$(OTHERFLAGS)
|
<toolset>gcc:<linkflags>$(OTHERFLAGS)
|
||||||
|
[ check-target-builds has_atomic_lib : <source>atomic ]
|
||||||
: config_test_no_rtti
|
: config_test_no_rtti
|
||||||
]
|
]
|
||||||
[ run config_test.cpp
|
[ run config_test.cpp
|
||||||
@@ -67,6 +75,7 @@ test-suite config
|
|||||||
<target-os>linux:<linkflags>-lpthread
|
<target-os>linux:<linkflags>-lpthread
|
||||||
<target-os>linux:<linkflags>-lrt
|
<target-os>linux:<linkflags>-lrt
|
||||||
<toolset>gcc:<linkflags>$(OTHERFLAGS)
|
<toolset>gcc:<linkflags>$(OTHERFLAGS)
|
||||||
|
[ check-target-builds has_atomic_lib : <source>atomic ]
|
||||||
: config_test_no_except
|
: 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 ]
|
[ 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