From e4b23ef077d042effe6e7ee78fc160cd644bc92a Mon Sep 17 00:00:00 2001 From: WXbet <57314510+WXbet@users.noreply.github.com> Date: Sun, 4 Oct 2020 13:47:58 +0200 Subject: [PATCH] tccheck - show compiler target if it's a symlink --- support/functions/_toolchain | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/functions/_toolchain b/support/functions/_toolchain index 473831a..d1461df 100644 --- a/support/functions/_toolchain +++ b/support/functions/_toolchain @@ -213,8 +213,9 @@ _toolchain_check(){ machine=$("./$compilername" -dumpmachine) sr=$("./$compilername" -print-sysroot 2>/dev/null) sysroot=${sr#"$tcdir/$1/bin/../"} + compilerpath=$(realpath ./$compilername) printf "$w_l GCC Version :$y_l $version\n" - printf "$w_l GCC Binary :$y_l $machine""-gcc\n" + printf "$w_l GCC Binary :$y_l $machine""-gcc $([ -L "./$compilername" ] && printf "$p_l(${compilerpath#"$tcdir/$1/"})")\n" printf "$w_l GCC Sysroot :$y_l $sysroot\n" [ -z "$sysroot" ] && sysroot="$r_l$txt_too_old\n" cd "$sr"