Changeset - r12953:819b64482ffb
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-09-07 17:23:17
smatz@openttd.org
(svn r17457) -Codechange: convert icc version to number so it can be compared more easily
1 file changed with 4 insertions and 5 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -1046,19 +1046,18 @@ make_compiler_cflags() {
 

	
 
	if [ `echo $1 | cut -c 1-3` = "icc" ]; then
 
		# Enable some things only for certain ICC versions
 
		cc_version=`$1 -dumpversion | cut -c 1-4`
 
		cc_version=`$1 -dumpversion | cut -c 1-4 | sed s@\\\.@@g`
 

	
 
		flags="$flags -rdynamic"
 
		ldflags="$ldflags -rdynamic"
 

	
 
		if [ "$cc_version" = "10.1" ]; then
 
		if [ $cc_version -ge 101 ]; then
 
			flags="$flags -Wno-multichar"
 
		fi
 

	
 
		if [ "$cc_version" = "11.0" ]; then
 
			# warning 1899: multicharacter character literal (potential portability problem) (e.g. 'FOOD')
 
		if [ $cc_version -ge 110 ]; then
 
			# vec report defaults to telling where it did loop vectorisation, which is not very important
 
			flags="$flags -vec-report=0 -wd1899"
 
			flags="$flags -vec-report=0"
 
		fi
 
	else
 
		# Enable some things only for certain GCC versions
0 comments (0 inline, 0 general)