mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 10:46:26 +00:00
cc/gcc: simplify the _or_later stuff
This commit is contained in:
parent
c971f6ee33
commit
933404b449
@ -22,25 +22,21 @@ choice
|
||||
config CC_V_4_4_3
|
||||
bool
|
||||
prompt "4.4.3"
|
||||
select CC_GCC_4_3_or_later
|
||||
select CC_GCC_4_4_or_later
|
||||
|
||||
config CC_V_4_4_2
|
||||
bool
|
||||
prompt "4.4.2"
|
||||
select CC_GCC_4_3_or_later
|
||||
select CC_GCC_4_4_or_later
|
||||
|
||||
config CC_V_4_4_1
|
||||
bool
|
||||
prompt "4.4.1"
|
||||
select CC_GCC_4_3_or_later
|
||||
select CC_GCC_4_4_or_later
|
||||
|
||||
config CC_V_4_4_0
|
||||
bool
|
||||
prompt "4.4.0"
|
||||
select CC_GCC_4_3_or_later
|
||||
select CC_GCC_4_4_or_later
|
||||
|
||||
config CC_V_4_3_4
|
||||
@ -111,6 +107,7 @@ config CC_GCC_4_3_or_later
|
||||
config CC_GCC_4_4_or_later
|
||||
bool
|
||||
default n
|
||||
select CC_GCC_4_3_or_later
|
||||
select PPL_CLOOG_MPC
|
||||
|
||||
config CC_VERSION
|
||||
|
@ -99,13 +99,12 @@ addToolVersion() {
|
||||
# Extract 'M'ajor and 'm'inor from version string
|
||||
ver_M=$(echo "${version}...." |cut -d . -f 1)
|
||||
ver_m=$(echo "${version}...." |cut -d . -f 2)
|
||||
if [ ${ver_M} -gt 4 \
|
||||
-o \( ${ver_M} -eq 4 -a ${ver_m} -ge 3 \) ]; then
|
||||
SedExpr1="${SedExpr1}\n select CC_GCC_4_3_or_later"
|
||||
fi
|
||||
if [ ${ver_M} -gt 4 \
|
||||
-o \( ${ver_M} -eq 4 -a ${ver_m} -ge 4 \) ]; then
|
||||
SedExpr1="${SedExpr1}\n select CC_GCC_4_4_or_later"
|
||||
elif [ ${ver_M} -gt 4 \
|
||||
-o \( ${ver_M} -eq 4 -a ${ver_m} -ge 3 \) ]; then
|
||||
SedExpr1="${SedExpr1}\n select CC_GCC_4_3_or_later"
|
||||
fi
|
||||
;;
|
||||
uClibc)
|
||||
|
Loading…
Reference in New Issue
Block a user