Changeset - r23105:837e8a24a9b8
[Not reviewed]
master
0 1 0
Charles Pigott - 6 years ago 2018-09-24 21:18:58
charlespigott@googlemail.com
Fix #6880: [OSX] Clang version detection
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -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 (0 inline, 0 general)