mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Auto merge of #26185 - dhuseby:fixing_freebsd_configure, r=brson
On FreeBSD machines without GCC installed, the configure script will now fall back to using clang.
This commit is contained in:
commit
4757d9bcc4
12
configure
vendored
12
configure
vendored
@ -899,6 +899,18 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If the clang isn't already enabled, check for GCC, and if it is missing, turn
|
||||||
|
# on clang as a backup.
|
||||||
|
if [ -z "$CFG_ENABLE_CLANG" ]
|
||||||
|
then
|
||||||
|
CFG_GCC_VERSION=$("$CFG_GCC" --version 2>&1)
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
step_msg "GCC not installed, will try using Clang"
|
||||||
|
CFG_ENABLE_CLANG=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Okay, at this point, we have made up our minds about whether we are
|
# Okay, at this point, we have made up our minds about whether we are
|
||||||
# going to force CFG_ENABLE_CLANG or not; save the setting if so.
|
# going to force CFG_ENABLE_CLANG or not; save the setting if so.
|
||||||
if [ ! -z "$CFG_ENABLE_CLANG" ]
|
if [ ! -z "$CFG_ENABLE_CLANG" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user