File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1006,6 +1006,19 @@ if [ -z "${HOST_CC}" ] ; then
1006
1006
if [ " $( uname -s) " == " Darwin" ] ; then
1007
1007
HOST_CC=" $( xcrun_find_tool clang) "
1008
1008
HOST_CXX=" $( xcrun_find_tool clang++) "
1009
+ elif [ " $( uname -s) " == " FreeBSD" ]; then
1010
+ if [ $( sysctl -n kern.osreldate) -ge 1100000 ]; then
1011
+ HOST_CC=" clang"
1012
+ HOST_CXX=" clang++"
1013
+ else
1014
+ for clang_candidate_suffix in " 38" " 37" " 36" " 35" ; do
1015
+ if which " clang${clang_candidate_suffix} " > /dev/null ; then
1016
+ HOST_CC=" clang${clang_candidate_suffix} "
1017
+ HOST_CXX=" clang++${clang_candidate_suffix} "
1018
+ break
1019
+ fi
1020
+ done
1021
+ fi
1009
1022
else
1010
1023
for clang_candidate_suffix in " " " -3.8" " -3.7" " -3.6" " -3.5" ; do
1011
1024
if which " clang${clang_candidate_suffix} " > /dev/null ; then
You can’t perform that action at this time.
0 commit comments