[PPL-devel] [GIT] ppl/ppl(master): The Intel C/C++ compiler does not support -pedantic.
Roberto Bagnara
bagnara at cs.unipr.it
Thu Apr 12 15:44:46 CEST 2012
Module: ppl/ppl
Branch: master
Commit: f76c05f9945195d99135594ee379ad1358563308
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=f76c05f9945195d99135594ee379ad1358563308
Author: Roberto Bagnara <bagnara at cs.unipr.it>
Date: Thu Apr 12 15:44:11 2012 +0200
The Intel C/C++ compiler does not support -pedantic.
---
configure.ac | 2 ++
demos/ppl_lpsol/Makefile.am | 9 +++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index feded19..95350e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -173,6 +173,8 @@ choke me
AC_LANG_POP(C)
fi
+AM_CONDITIONAL(ICC, test x"$ICC" = xyes)
+
# The clang compiler masquerades as gcc, but we want to know.
if test x"$GCC" = xyes
then
diff --git a/demos/ppl_lpsol/Makefile.am b/demos/ppl_lpsol/Makefile.am
index 89ae245..56dcaa1 100644
--- a/demos/ppl_lpsol/Makefile.am
+++ b/demos/ppl_lpsol/Makefile.am
@@ -52,9 +52,18 @@ dummy.cc
if GCC
+if ICC
+
+# We cannot use -std=c89 because of the definition of sigaction in <signal.h>.
+ppl_lpsol_CFLAGS = -std=gnu89
+
+else !ICC
+
# We cannot use -std=c89 because of the definition of sigaction in <signal.h>.
ppl_lpsol_CFLAGS = -pedantic -std=gnu89 -Werror
+endif !ICC
+
endif GCC
ppl_lpsol_LDADD = \
More information about the PPL-devel
mailing list