File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
3
3
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4
- refs/heads/try: 4de71c7ef6c4a71af7f0e5fe3fe47b017ec9a791
4
+ refs/heads/try: 97fb1c241c1356f6695ba24eab0085535688ae85
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
7
7
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -861,16 +861,6 @@ then
861
861
CFG_DISABLE_JEMALLOC=1
862
862
fi
863
863
864
- if [ $CFG_OSTYPE = unknown-freebsd ]
865
- then
866
- CFG_FREEBSD_GCC_VERSION=$( " CFG_GCC" --version 2>&1 )
867
- if [ $? -ne 0 ]
868
- then
869
- step_msg " GCC not installed on FreeBSD, forcing clang"
870
- CFG_ENABLE_CLANG=1
871
- fi
872
- fi
873
-
874
864
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
875
865
# system, so if we find that gcc is clang, we should just use clang directly.
876
866
if [ $CFG_OSTYPE = apple-darwin -a -z " $CFG_ENABLE_CLANG " ]
@@ -909,6 +899,18 @@ then
909
899
fi
910
900
fi
911
901
902
+ # If the clang isn't already enabled, check for GCC, and if it is missing, turn
903
+ # on clang as a backup.
904
+ if [ -z " $CFG_ENABLE_CLANG " ]
905
+ then
906
+ CFG_GCC_VERSION=$( " CFG_GCC" --version 2>&1 )
907
+ if [ $? -ne 0 ]
908
+ then
909
+ step_msg " GCC not installed, will try using Clang"
910
+ CFG_ENABLE_CLANG=1
911
+ fi
912
+ fi
913
+
912
914
# Okay, at this point, we have made up our minds about whether we are
913
915
# going to force CFG_ENABLE_CLANG or not; save the setting if so.
914
916
if [ ! -z " $CFG_ENABLE_CLANG " ]
You can’t perform that action at this time.
0 commit comments