From ee15c6221b841385d4447f0380994c4ed308232a Mon Sep 17 00:00:00 2001 From: Nick Thompson Date: Tue, 1 Sep 2026 19:10:10 -0700 Subject: [PATCH] Cleanup Jamfile for minimax --- tools/minimax/Jamfile.v2 | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/tools/minimax/Jamfile.v2 b/tools/minimax/Jamfile.v2 index 81790f9a62..f0226cc320 100644 --- a/tools/minimax/Jamfile.v2 +++ b/tools/minimax/Jamfile.v2 @@ -4,11 +4,15 @@ # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt. # \math_toolkit\libs\math\minimax\jamfile.v2 -# Runs minimax using multiprecision, (rather than gmp and mpfr) +# Runs minimax using Boost.Multiprecision with an MPFR backend. # bring in the rules for testing. import modules ; import path ; +import-search /boost/config/checks ; + +local gmp_path = [ modules.peek : GMP_PATH ] ; +local mpfr_path = [ modules.peek : MPFR_PATH ] ; project : requirements @@ -32,15 +36,20 @@ project BOOST_UBLAS_UNSUPPORTED_COMPILER=0 . ../include_private + $(gmp_path) + $(mpfr_path) + $(gmp_path) + $(mpfr_path) #$(ntl-path)/include ; -#lib mpfr : gmp : mpfr ; - -#lib gmp : : gmp ; +searched-lib gmp : : shared ; +searched-lib mpfr : gmp : shared ; +searched-lib quadmath : : shared ; -# exe minimax : f.cpp main.cpp gmp mpfr ; -exe minimax : f.cpp main.cpp ; +exe minimax : f.cpp main.cpp mpfr + : [ check-target-builds ../../config//has_mpfr "MPFR support" : : no ] + [ check-target-builds ../../config//has_float128 "GCC libquadmath and __float128 support" : quadmath ] + ; install bin : minimax ; -