Skip to content

Commit cc75a57

Browse files
Elly Jonesbrson
Elly Jones
authored andcommitted
---
yaml --- r: 6127 b: refs/heads/master c: 234a4e5 h: refs/heads/master i: 6125: 700d07f 6123: f0a879b 6119: 9257338 6111: 37cf4a2 v: v3
1 parent 03f562c commit cc75a57

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: a26554d97bcba62f221d5dc4112f34f86b5b60e3
2+
refs/heads/master: 234a4e58bdb5f5cba48d1671fbb034a3f6461fd2

trunk/configure

+10-7
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ valopt() {
8585
local DOC="$*"
8686
if [ $HELP -eq 0 ]
8787
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"
9191
for arg in $CFG_CONFIGURE_ARGS
9292
do
9393
if echo "$arg" | grep -q -- "--$OP="
@@ -98,8 +98,12 @@ valopt() {
9898
done
9999
putvar $V
100100
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"
103107
fi
104108
}
105109

@@ -246,14 +250,13 @@ opt docs 1 "build documentation"
246250
opt optimize 1 "build optimized rust code"
247251
opt mingw-cross 0 "cross-compile for win32 using mingw"
248252
valopt prefix "/usr/local" "set installation prefix"
253+
valopt llvm-root "" "set llvm root"
249254

250255
if [ $HELP -eq 1 ]
251256
then
252257
echo ""
253258
echo "Useful environment variables:"
254259
echo ""
255-
printf " %-32s %s\n" "CFG_LLVM_ROOT" "The host LLVM install"
256-
printf " %-32s %s\n" "CFG_PREFIX" "The installation prefix"
257260
printf " %-32s %s\n" "CFG_ONLY_GCC" "Prefer gcc to clang for building the runtime"
258261
printf " %-32s %s\n" "CFG_TARGET_TRIPLES" "LLVM target triples"
259262
echo ""

0 commit comments

Comments
 (0)