mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-05-04 18:12:58 +00:00
scripts/functions: introduce target_bits_32 and target_bits_64 variables
These variables behave the same for bitness as their counterparts do for endianness: they are defined to the appropriate bitness. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Cody P Schafer <dev@codyps.com>
This commit is contained in:
parent
bcb36bb8df
commit
12e1875557
@ -1154,6 +1154,18 @@ CT_DoBuildTargetTuple() {
|
||||
;;
|
||||
esac
|
||||
|
||||
# Set the bitness suffix
|
||||
case "${CT_ARCH_BITNESS}" in
|
||||
32)
|
||||
target_bits_32=32
|
||||
target_bits_64=
|
||||
;;
|
||||
64)
|
||||
target_bits_32=
|
||||
target_bits_64=64
|
||||
;;
|
||||
esac
|
||||
|
||||
# Build the default architecture tuple part
|
||||
CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_SUFFIX}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user