diff options
author | Morgan Deters <mdeters@gmail.com> | 2011-10-21 04:25:19 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2011-10-21 04:25:19 +0000 |
commit | da1f0e9e8479741487a59ad68198262c3730081e (patch) | |
tree | 2f764fcd4574ddefd62ad0da44b1bec64df685dd /config | |
parent | 19b3adf57987584096ca59dc9852fb9573ee1715 (diff) |
add gcc version information to Configuration, and warn when building with v4.5.1 which has a buggy optimizer (resolves bug #266)
Diffstat (limited to 'config')
-rw-r--r-- | config/gcc_version.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/gcc_version.m4 b/config/gcc_version.m4 new file mode 100644 index 000000000..acd051042 --- /dev/null +++ b/config/gcc_version.m4 @@ -0,0 +1,7 @@ +# GCC version 4.5.1 builds Minisat incorrectly with -O2 +# and that gives incorrect answers! Warn the user! +AC_DEFUN([CVC4_GCC_VERSION], [ + if expr "$($CC -dumpversion)" : '4\.5\.1' &>/dev/null; then + CVC4_INTEGRITY_WARNING="GCC 4.5.1's optimizer is known to make errors building Minisat (and by extension CVC4)" + fi +])# CVC4_GCC_VERSION |