mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
configure: error on unsupported target-triples and arm-linux-androideabi fix
This commit is contained in:
parent
a56ec8c134
commit
2911fc29d0
1 changed files with 16 additions and 1 deletions
17
configure
vendored
17
configure
vendored
|
@ -536,6 +536,7 @@ fi
|
||||||
CFG_PREFIX=${CFG_PREFIX%/}
|
CFG_PREFIX=${CFG_PREFIX%/}
|
||||||
CFG_HOST_TRIPLES="$(echo $CFG_HOST_TRIPLES | tr ',' ' ')"
|
CFG_HOST_TRIPLES="$(echo $CFG_HOST_TRIPLES | tr ',' ' ')"
|
||||||
CFG_TARGET_TRIPLES="$(echo $CFG_TARGET_TRIPLES | tr ',' ' ')"
|
CFG_TARGET_TRIPLES="$(echo $CFG_TARGET_TRIPLES | tr ',' ' ')"
|
||||||
|
CFG_SUPPORTED_TARGET_TRIPLES="$(grep ^CC_*=* $CFG_SRC_DIR/mk/platform.mk | sed 's,^[^_]*_,,' | sed 's/\([^=]*\).*/\1/' | xargs)"
|
||||||
|
|
||||||
# copy host-triples to target-triples so that hosts are a subset of targets
|
# copy host-triples to target-triples so that hosts are a subset of targets
|
||||||
V_TEMP=""
|
V_TEMP=""
|
||||||
|
@ -548,8 +549,22 @@ CFG_TARGET_TRIPLES=$V_TEMP
|
||||||
# check target-specific tool-chains
|
# check target-specific tool-chains
|
||||||
for i in $CFG_TARGET_TRIPLES
|
for i in $CFG_TARGET_TRIPLES
|
||||||
do
|
do
|
||||||
|
L_CHECK=false
|
||||||
|
for j in $CFG_SUPPORTED_TARGET_TRIPLES
|
||||||
|
do
|
||||||
|
if [ $i = $j ]
|
||||||
|
then
|
||||||
|
L_CHECK=true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ $L_CHECK = false ]
|
||||||
|
then
|
||||||
|
err "unsupported target triples \"$i\" found"
|
||||||
|
fi
|
||||||
|
|
||||||
case $i in
|
case $i in
|
||||||
arm-unknown-android)
|
arm-linux-androideabi)
|
||||||
|
|
||||||
if [ ! -f $CFG_ANDROID_CROSS_PATH/bin/arm-linux-androideabi-gcc ]
|
if [ ! -f $CFG_ANDROID_CROSS_PATH/bin/arm-linux-androideabi-gcc ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue