Permalink
Browse files

Fix #6880: [OSX] Clang version detection

  • Loading branch information...
LordAro authored and TrueBrain committed Sep 24, 2018
1 parent 0e7af55 commit 175829b8b5a24efaa46e18d2a0d0b1f59d14e72d
Showing with 2 additions and 1 deletion.
  1. +2 −1 config.lib
@@ -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"

0 comments on commit 175829b

Please sign in to comment.