build_library/toolchain_util.sh: Quiet the deprecation warning

The warning was:

gcc-config: the --nocolor option is deprecated by gentoo-functions;
please set NO_COLOR=1 instead

Probably started showing up after the recent update of
gentoo-functions.

Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
This commit is contained in:
Krzesimir Nowak 2026-03-10 15:06:18 +01:00
parent ace4543e3a
commit d7cf877ee2

View File

@ -493,7 +493,7 @@ gcc_get_latest_profile() {
local prefix=${1}
local suffix=${2+-${2}}
local status
gcc-config --list-profiles --nocolor | \
NO_COLOR=1 gcc-config --list-profiles | \
sed -e 's/^\s*//' | \
cut -d' ' -f2 | \
grep "^${prefix}-[0-9\\.]*${suffix}$" | \