mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
Make sure we're using clang >=3.0svn.
This commit is contained in:
parent
134b61a317
commit
7341055b84
17
configure
vendored
17
configure
vendored
@ -274,6 +274,23 @@ case $CFG_LLVM_VERSION in
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ ! -z "$CFG_CLANG" ]
|
||||
then
|
||||
CFG_CLANG_VERSION=$("$CFG_CLANG" \
|
||||
--version \
|
||||
| grep version \
|
||||
| cut -d ' ' -f 3)
|
||||
|
||||
case $CFG_CLANG_VERSION in
|
||||
(3.0svn | 3.0)
|
||||
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
|
||||
;;
|
||||
(*)
|
||||
err "bad CLANG version: $CFG_CLANG_VERSION, need >=3.0svn"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
putvar CFG_LLVM_ROOT
|
||||
putvar CFG_LLVM_INCDIR
|
||||
putvar CFG_LLVM_BINDIR
|
||||
|
Loading…
Reference in New Issue
Block a user