From d7e258faf5ca45734a9f0349f2a9decedda50f14 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Fri, 24 Apr 2015 18:10:30 +0100 Subject: [PATCH] Update Jamfile to check for -latomic The config_test tests all require linking against -latomic when GCC provides it in order to test for . Seems to be a new gcc-5.1.0 requirement. --- test/Jamfile.v2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 05d27df8..986913cb 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -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 multi + [ check-target-builds has_atomic_lib : atomic ] : config_test_threaded ] [ run config_test.cpp @@ -48,6 +54,7 @@ test-suite config linux:-lpthread linux:-lrt gcc:$(OTHERFLAGS) + [ check-target-builds has_atomic_lib : atomic ] ] [ run config_test.cpp : #args @@ -57,6 +64,7 @@ test-suite config linux:-lpthread linux:-lrt gcc:$(OTHERFLAGS) + [ check-target-builds has_atomic_lib : atomic ] : config_test_no_rtti ] [ run config_test.cpp @@ -67,6 +75,7 @@ test-suite config linux:-lpthread linux:-lrt gcc:$(OTHERFLAGS) + [ check-target-builds has_atomic_lib : atomic ] : config_test_no_except ] [ run config_info.cpp : : : always_show_run_output single msvc:static msvc:static ]