Skip to content

Commit e04bf25

Browse files
committed
Skip target probing when STACKMAN_ABI override is set
1 parent f0769ef commit e04bf25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/abiname.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ tmp=$(mktemp "${here}/tmp/abinameXXX.c")
6767
CC=${1:-cc}
6868
CFLAGS=${2:-}
6969
ABI_OVERRIDE=${3:-${STACKMAN_ABI:-}}
70-
target_triple=$(detect_target_triple)
7170
if [ -n "${ABI_OVERRIDE}" ]; then
7271
abi=$(canonicalize_abi "${ABI_OVERRIDE}")
7372
if [ -n "${STACKMAN_ABI_DEBUG:-}" ] || [ -n "${STACKMAN_ABI_TRACE:-}" ]; then
74-
printf '%s\n' "stackman abiname: cc=${CC} target=${target_triple:-unknown} abi=${abi} source=override" >&2
73+
printf '%s\n' "stackman abiname: cc=${CC} target=override-skip abi=${abi} source=override" >&2
7574
fi
7675
printf '%s\n' "${abi}"
7776
exit 0
7877
fi
78+
target_triple=$(detect_target_triple)
7979
${CC} ${CFLAGS} -I${here}/../stackman -E -o "${tmp}" "${here}/abiname.c"
8080
#2 compile resulting file
8181
cc -o "${tmp}.out" "${tmp}"

0 commit comments

Comments
 (0)