Skip to content

Commit

Permalink
Fix #6880: [OSX] Clang version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
LordAro authored and TrueBrain committed Jan 5, 2019
1 parent 0e7af55 commit 175829b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.lib
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,8 @@ make_compiler_cflags() {
fi
elif echo "$version_line" | grep -q "clang"; then
# Enable some things only for certain clang versions
cc_version="`$1 -v 2>&1 | head -n 1 | sed s@[^0-9]@@g | cut -c 1-2`"
# Need to try really hard to get the version line, because OSX clang likes to hide its true version
cc_version="`$1 -v 2>&1 | grep -i version | head -n 1 | sed s@[^0-9]@@g | cut -c 1-2`"

# aliasing rules are not held in openttd code
flags="$flags -fno-strict-aliasing"
Expand Down

0 comments on commit 175829b

Please sign in to comment.