File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ opt valgrind 1 "run tests with valgrind"
249
249
opt docs 1 " build documentation"
250
250
opt optimize 1 " build optimized rust code"
251
251
opt mingw-cross 0 " cross-compile for win32 using mingw"
252
- opt only-gcc 0 " prefer gcc to clang for building the runtime"
252
+ opt clang 0 " prefer gcc to clang for building the runtime"
253
253
valopt prefix " /usr/local" " set installation prefix"
254
254
valopt llvm-root " " " set LLVM root"
255
255
valopt target-triples " " " LLVM target triples (defaults to host if unset)"
@@ -284,7 +284,7 @@ probe CFG_TEX tex
284
284
probe CFG_MAKENSIS makensis
285
285
probe CFG_NATURALDOCS naturaldocs
286
286
287
- if [ -z " $CFG_CLANG " -a -z " $CFG_GCC " ]
287
+ if [ -z " $CFG_ENABLE_CLANG " -a -z " $CFG_GCC " ]
288
288
then
289
289
err " either clang or gcc is required"
290
290
fi
@@ -351,8 +351,12 @@ case $CFG_LLVM_VERSION in
351
351
;;
352
352
esac
353
353
354
- if [ ! -z " $CFG_CLANG " -a -z " $CFG_ONLY_GCC " ]
354
+ if [ ! -z " $CFG_ENABLE_CLANG " ]
355
355
then
356
+ if [ -z " $CFG_CLANG " ]
357
+ then
358
+ err " clang requested but not found"
359
+ fi
356
360
CFG_CLANG_VERSION=$( " $CFG_CLANG " \
357
361
--version \
358
362
| grep version \
You can’t perform that action at this time.
0 commit comments