mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Changes to configure (Fix for #1291)
This commit is contained in:
parent
be3352939a
commit
9c4b3c26f0
7
configure
vendored
7
configure
vendored
@ -85,7 +85,7 @@ valopt() {
|
|||||||
local DOC="$*"
|
local DOC="$*"
|
||||||
if [ $HELP -eq 0 ]
|
if [ $HELP -eq 0 ]
|
||||||
then
|
then
|
||||||
local UOP=$(echo $OP | tr 'a-z-' 'A-Z_')
|
local UOP=$(echo $OP | tr '[:lower:]' '[:upper:]' | tr '\-' '\_')
|
||||||
local V="CFG_${UOP}"
|
local V="CFG_${UOP}"
|
||||||
eval $V="$DEFAULT"
|
eval $V="$DEFAULT"
|
||||||
for arg in $CFG_CONFIGURE_ARGS
|
for arg in $CFG_CONFIGURE_ARGS
|
||||||
@ -335,6 +335,11 @@ then
|
|||||||
CFG_PREFIX=/usr/local
|
CFG_PREFIX=/usr/local
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$CFG_HOST_TRIPLE" ]
|
||||||
|
then
|
||||||
|
CFG_HOST_TRIPLE="$DEFAULT_HOST_TRIPLE"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$CFG_TARGET_TRIPLES" ]
|
if [ -z "$CFG_TARGET_TRIPLES" ]
|
||||||
then
|
then
|
||||||
CFG_TARGET_TRIPLES="${CFG_HOST_TRIPLE}"
|
CFG_TARGET_TRIPLES="${CFG_HOST_TRIPLE}"
|
||||||
|
Loading…
Reference in New Issue
Block a user