Skip to content

Commit

Permalink
Search for 'cc clang gcc' on OpenBSD, FreeBSD.
Browse files Browse the repository at this point in the history
Details:
- Swapped gcc and clang in the compiler search list for OpenBSD.
- Use the same search list for FreeBSD as above.
  • Loading branch information
fgvanzee committed May 14, 2018
1 parent 55ebf24 commit 9dbce16
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -789,12 +789,14 @@ get_cc_search_list()
{
local list

# For Linux, OS X, and generic OSes, prioritize gcc.
# For Linux, Darwin (OS X), and generic OSes, prioritize gcc.
list="gcc clang cc"

# For OpenBSD, prioritize cc over gcc and clang.
if [ ${os_name} = "OpenBSD" ]; then
list="cc gcc clang"
# For OpenBSD and FreeBSD, prioritize cc and clang over gcc.
if [ "${os_name}" = "OpenBSD" ]; then
list="cc clang gcc"
elif [ "${os_name}" = "FreeBSD" ]; then
list="cc clang gcc"
fi

echo "${list}"
Expand Down

0 comments on commit 9dbce16

Please sign in to comment.