mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-28 09:01:55 +02:00
eclass/toolchain-funcs: Sync with Gentoo
It's from Gentoo commit 37fc81a57e3ce42fc3059354ad26a8c257ce1851.
This commit is contained in:
parent
a10de3dd0d
commit
359e32977b
@ -599,16 +599,6 @@ _tc-has-openmp() {
|
|||||||
return ${ret}
|
return ${ret}
|
||||||
}
|
}
|
||||||
|
|
||||||
# @FUNCTION: tc-has-openmp
|
|
||||||
# @USAGE: [toolchain prefix]
|
|
||||||
# @DEPRECATED: tc-check-openmp
|
|
||||||
# @DESCRIPTION:
|
|
||||||
# See if the toolchain supports OpenMP. This function is deprecated and will be
|
|
||||||
# removed on 2023-01-01.
|
|
||||||
tc-has-openmp() {
|
|
||||||
_tc-has-openmp "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
# @FUNCTION: tc-check-openmp
|
# @FUNCTION: tc-check-openmp
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# Test for OpenMP support with the current compiler and error out with
|
# Test for OpenMP support with the current compiler and error out with
|
||||||
@ -767,6 +757,13 @@ tc-arch() {
|
|||||||
tc-ninja_magic_to_arch portage "$@"
|
tc-ninja_magic_to_arch portage "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# @FUNCTION: tc-endian
|
||||||
|
# @USAGE: [toolchain prefix]
|
||||||
|
# @RETURN: 'big' or 'little' corresponding to the passed (or host) endianness
|
||||||
|
# @DESCRIPTION:
|
||||||
|
# Accepts 'host' as an argument which defaults to CTARGET and falls back to CHOST
|
||||||
|
# if unspecified. Returns 'big' or 'little' depending on whether 'host' is
|
||||||
|
# big or little endian.
|
||||||
tc-endian() {
|
tc-endian() {
|
||||||
local host=$1
|
local host=$1
|
||||||
[[ -z ${host} ]] && host=${CTARGET:-${CHOST}}
|
[[ -z ${host} ]] && host=${CTARGET:-${CHOST}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user