• [gentoo-dev] [PATCH 1/2] toolchain-funcs.eclass: deprecate tc-has-openm

    From David Seifert@21:1/5 to All on Sun May 15 23:40:01 2022
    Signed-off-by: David Seifert <soap@gentoo.org>
    ---
    eclass/toolchain-funcs.eclass | 19 +++++++++++++++----
    1 file changed, 15 insertions(+), 4 deletions(-)

    diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 77fb304940b..9ad5e224b03 100644
    --- a/eclass/toolchain-funcs.eclass
    +++ b/eclass/toolchain-funcs.eclass
    @@ -1,4 +1,4 @@
    -# Copyright 2002-2021 Gentoo Authors
    +# Copyright 2002-2022 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: toolchain-funcs.eclass
    @@ -569,11 +569,12 @@ tc-ld-force-bfd() {
    fi
    }

    -# @FUNCTION: tc-has-openmp
    +# @FUNCTION: _tc-has-openmp
    +# @INTERNAL
    # @USAGE: [toolchain prefix]
    # @DESCRIPTION:
    # See if the toolchain supports OpenMP.
    -tc-has-openmp() {
    +_tc-has-openmp() {
    local base="${T}/test-tc-openmp"
    cat <<-EOF > "${base}.c"
    #include <omp.h>
    @@ -593,6 +594,16 @@ tc-has-openmp() {
    return ${ret}
    }

    +# @FUNCTION: tc-has-openmp
    +# @DEPRECATED: tc-check-openmp
    +# @USAGE: [toolchain prefix]
    +# @DESCRIPTION: