Skip to content

Commit dd88b2f

Browse files
author
Dave Huseby
committed
---
yaml --- r: 227811 b: refs/heads/try c: 97fb1c2 h: refs/heads/master i: 227809: 5be8229 227807: 7c5a9da v: v3
1 parent ea0bf76 commit dd88b2f

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 4de71c7ef6c4a71af7f0e5fe3fe47b017ec9a791
4+
refs/heads/try: 97fb1c241c1356f6695ba24eab0085535688ae85
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/configure

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -861,16 +861,6 @@ then
861861
CFG_DISABLE_JEMALLOC=1
862862
fi
863863

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-
874864
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
875865
# system, so if we find that gcc is clang, we should just use clang directly.
876866
if [ $CFG_OSTYPE = apple-darwin -a -z "$CFG_ENABLE_CLANG" ]
@@ -909,6 +899,18 @@ then
909899
fi
910900
fi
911901

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+
912914
# Okay, at this point, we have made up our minds about whether we are
913915
# going to force CFG_ENABLE_CLANG or not; save the setting if so.
914916
if [ ! -z "$CFG_ENABLE_CLANG" ]

0 commit comments

Comments
 (0)