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 @@ -1016,6 +1016,19 @@ if [ -z "${HOST_CC}" ] ; then
1016
1016
if [ " $( uname -s) " == " Darwin" ] ; then
1017
1017
HOST_CC=" $( xcrun_find_tool clang) "
1018
1018
HOST_CXX=" $( xcrun_find_tool clang++) "
1019
+ elif [ " $( uname -s) " == " FreeBSD" ]; then
1020
+ if [ $( sysctl -n kern.osreldate) -ge 1100000 ]; then
1021
+ HOST_CC=" clang"
1022
+ HOST_CXX=" clang++"
1023
+ else
1024
+ for clang_candidate_suffix in " 38" " 37" " 36" " 35" ; do
1025
+ if which " clang${clang_candidate_suffix} " > /dev/null ; then
1026
+ HOST_CC=" clang${clang_candidate_suffix} "
1027
+ HOST_CXX=" clang++${clang_candidate_suffix} "
1028
+ break
1029
+ fi
1030
+ done
1031
+ fi
1019
1032
else
1020
1033
for clang_candidate_suffix in " " " -3.8" " -3.7" " -3.6" " -3.5" ; do
1021
1034
if which " clang${clang_candidate_suffix} " > /dev/null ; then
You can’t perform that action at this time.
0 commit comments