mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-20 09:06:19 +00:00
arch/x86: add a sanity check
i[34567]86-*-gnux32 is not a valid tuple. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: Ray Donnelly <ray.donnelly@gmail.com> Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
parent
34ecc718d9
commit
67b314a051
@ -20,6 +20,17 @@ CT_DoArchTupleValues() {
|
||||
esac
|
||||
fi
|
||||
CT_TARGET_ARCH="${CT_TARGET_ARCH}${CT_ARCH_SUFFIX}"
|
||||
|
||||
# Shouldn't be possible to specify this (CT_TARGET_SYS is not specified by the user,
|
||||
# it is computed by scripts/functions from libc choices). But trap if such invalid
|
||||
# values ever come from the caller:
|
||||
case "${CT_TARGET_ARCH}-${CT_TARGET_SYS}" in
|
||||
i[34567]86-gnux32)
|
||||
CT_DoLog ERROR "Invalid CT_TARGET: i[34567]86-<vendor>-<os>-gnux32 is invalid."
|
||||
CT_DoLog ERROR "CT_TARGET: ${CT_TARGET}"
|
||||
CT_Abort "Go read: https://wiki.debian.org/Multiarch/Tuples"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user