This PR adds the code of Boost.Math as of version 1.89 into the third-party directory, as discussed in a recent RFC [1]. The goal is for this code to be used as a back-end for the C++17 Math Special Functions. As explained in third-paty/README.md, this code is cleared for usage inside libc++ for the Math Special functions, however the LLVM Foundation should be consulted before using this code anywhere else in the LLVM project, due to the fact that it is under the Boost Software License (as opposed to the usual LLVM license). See the RFC [1] for more details. [1]: https://discourse.llvm.org/t/rfc-libc-taking-a-dependency-on-boost-math-for-the-c-17-math-special-functions
49 lines
1.5 KiB
Plaintext
49 lines
1.5 KiB
Plaintext
# Copyright René Ferdinand Rivera Morell 2023-2024
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# (See accompanying file LICENSE_1_0.txt or copy at
|
|
# http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
require-b2 5.2 ;
|
|
|
|
constant boost_dependencies :
|
|
/boost/assert//boost_assert
|
|
/boost/concept_check//boost_concept_check
|
|
/boost/config//boost_config
|
|
/boost/core//boost_core
|
|
/boost/integer//boost_integer
|
|
/boost/lexical_cast//boost_lexical_cast
|
|
/boost/predef//boost_predef
|
|
/boost/random//boost_random
|
|
/boost/static_assert//boost_static_assert
|
|
/boost/throw_exception//boost_throw_exception ;
|
|
|
|
project /boost/math
|
|
: common-requirements
|
|
<include>include
|
|
;
|
|
|
|
explicit
|
|
[ alias boost_math : : : : <library>$(boost_dependencies) ]
|
|
[ alias boost_math_c99 : build//boost_math_c99 ]
|
|
[ alias boost_math_c99f : build//boost_math_c99f ]
|
|
[ alias boost_math_c99l : build//boost_math_c99l ]
|
|
[ alias boost_math_tr1 : build//boost_math_tr1 ]
|
|
[ alias boost_math_tr1f : build//boost_math_tr1f ]
|
|
[ alias boost_math_tr1l : build//boost_math_tr1l ]
|
|
[ alias all :
|
|
boost_math
|
|
boost_math_c99 boost_math_c99f boost_math_c99l
|
|
boost_math_tr1 boost_math_tr1f boost_math_tr1l
|
|
example test ]
|
|
[ alias testing : : : :
|
|
<include>test
|
|
<include>include_private ]
|
|
;
|
|
|
|
call-if : boost-library math
|
|
: install boost_math
|
|
boost_math_c99 boost_math_c99f boost_math_c99l
|
|
boost_math_tr1 boost_math_tr1f boost_math_tr1l
|
|
;
|
|
|