File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: a26554d97bcba62f221d5dc4112f34f86b5b60e3
2
+ refs/heads/master: 234a4e58bdb5f5cba48d1671fbb034a3f6461fd2
Original file line number Diff line number Diff line change @@ -85,9 +85,9 @@ valopt() {
85
85
local DOC=" $* "
86
86
if [ $HELP -eq 0 ]
87
87
then
88
- local UOP=$( echo $OP | tr ' a-z-' ' A-Z_' )
89
- local V=" CFG_${UOP} "
90
- eval $V =" $DEFAULT "
88
+ local UOP=$( echo $OP | tr ' a-z-' ' A-Z_' )
89
+ local V=" CFG_${UOP} "
90
+ eval $V =" $DEFAULT "
91
91
for arg in $CFG_CONFIGURE_ARGS
92
92
do
93
93
if echo " $arg " | grep -q -- " --$OP ="
@@ -98,8 +98,12 @@ valopt() {
98
98
done
99
99
putvar $V
100
100
else
101
- local OPDEF=" ${OP} =[${DEFAULT} ]"
102
- printf " --%-30s %s\n" " $OPDEF " " $DOC "
101
+ if [ -z " $DEFAULT " ]
102
+ then
103
+ DEFAULT=" <none>"
104
+ fi
105
+ OP=" ${OP} =[${DEFAULT} ]"
106
+ printf " --%-30s %s\n" " $OP " " $DOC "
103
107
fi
104
108
}
105
109
@@ -246,14 +250,13 @@ opt docs 1 "build documentation"
246
250
opt optimize 1 " build optimized rust code"
247
251
opt mingw-cross 0 " cross-compile for win32 using mingw"
248
252
valopt prefix " /usr/local" " set installation prefix"
253
+ valopt llvm-root " " " set llvm root"
249
254
250
255
if [ $HELP -eq 1 ]
251
256
then
252
257
echo " "
253
258
echo " Useful environment variables:"
254
259
echo " "
255
- printf " %-32s %s\n" " CFG_LLVM_ROOT" " The host LLVM install"
256
- printf " %-32s %s\n" " CFG_PREFIX" " The installation prefix"
257
260
printf " %-32s %s\n" " CFG_ONLY_GCC" " Prefer gcc to clang for building the runtime"
258
261
printf " %-32s %s\n" " CFG_TARGET_TRIPLES" " LLVM target triples"
259
262
echo " "
You can’t perform that action at this time.
0 commit comments