Adjust the build system for ICC.
* m4/intel.m4: Remove the `-W' option from CXXFLAGS since icpc
does not support it. Inhibit the warning ``method was declared
but never referenced''.
This commit is contained in:
parent
d1cf819540
commit
7ac816f38e
2 changed files with 15 additions and 3 deletions
|
|
@ -1,3 +1,11 @@
|
||||||
|
2009-06-12 Guillaume Sadegh <sadegh@lrde.epita.fr>
|
||||||
|
|
||||||
|
Adjust the build system for ICC.
|
||||||
|
|
||||||
|
* m4/intel.m4: Remove the `-W' option from CXXFLAGS since icpc
|
||||||
|
does not support it. Inhibit the warning ``method was declared
|
||||||
|
but never referenced''.
|
||||||
|
|
||||||
2009-06-11 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
2009-06-11 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
Kill a g++-4.2 warning.
|
Kill a g++-4.2 warning.
|
||||||
|
|
|
||||||
10
m4/intel.m4
10
m4/intel.m4
|
|
@ -14,10 +14,11 @@ _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef __INTEL_COMPILER
|
||||||
ac_cv_[]_AC_LANG_ABBREV[]_compiler_intel=$ac_compiler_intel
|
ac_cv_[]_AC_LANG_ABBREV[]_compiler_intel=$ac_compiler_intel
|
||||||
])])# _AC_LANG_COMPILER_INTEL
|
])])# _AC_LANG_COMPILER_INTEL
|
||||||
|
|
||||||
dnl The list of warnings which must be disabled for Spot.
|
dnl The list of warnings that must be disabled for Spot.
|
||||||
m4_define([_INTEL_IGNORE_WARNINGS],
|
m4_define([_INTEL_IGNORE_WARNINGS],
|
||||||
[ 69 dnl Warn when an enum value is used as an int, without any
|
[ 69 dnl Warn when an enum value is used as an int, without any
|
||||||
dnl explicit cast.
|
dnl explicit cast.
|
||||||
|
177 dnl Warm when a method was declared but never referenced.
|
||||||
279 dnl Warn when a constant expression is used in a control statement.
|
279 dnl Warn when a constant expression is used in a control statement.
|
||||||
654 dnl Warn when a child does not overload all virtual members of his
|
654 dnl Warn when a child does not overload all virtual members of his
|
||||||
dnl parents.
|
dnl parents.
|
||||||
|
|
@ -32,13 +33,16 @@ AC_CACHE_CHECK([to add extra CXXFLAGS for the INTEL C++ compiler],
|
||||||
[ac_cv_intel_cxxflags],
|
[ac_cv_intel_cxxflags],
|
||||||
[ dnl
|
[ dnl
|
||||||
if test x"$ac_compiler_intel" = x"yes"; then
|
if test x"$ac_compiler_intel" = x"yes"; then
|
||||||
|
# -W does not exist for icpc in CXXFLAGS.
|
||||||
|
CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-W[[[:space:]]]//g;s/-W$//'`
|
||||||
|
|
||||||
disabled_warnings=''
|
disabled_warnings=''
|
||||||
for warning in _INTEL_IGNORE_WARNINGS; do
|
for warning in _INTEL_IGNORE_WARNINGS; do
|
||||||
disabled_warnings="$disabled_warnings,$warning"
|
disabled_warnings="$disabled_warnings,$warning"
|
||||||
done
|
done
|
||||||
|
|
||||||
# remove the extra "," and extra whitespaces.
|
# Remove the extra "," and extra whitespaces.
|
||||||
disabled_warnings=`echo "$disabled_warnings" | sed "s/^,//;s/[[:space:]]//g"`
|
disabled_warnings=`echo "$disabled_warnings" | sed "s/^,//;s/[[[:space:]]]//g"`
|
||||||
|
|
||||||
INTEL_CXXFLAGS="-w1 -Werror -wd${disabled_warnings}"
|
INTEL_CXXFLAGS="-w1 -Werror -wd${disabled_warnings}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue