give an option error if the user specifies --proof in a non-proof-enabled build
authorMorgan Deters <mdeters@gmail.com>
Wed, 2 Nov 2011 13:05:11 +0000 (13:05 +0000)
committerMorgan Deters <mdeters@gmail.com>
Wed, 2 Nov 2011 13:05:11 +0000 (13:05 +0000)
src/util/options.cpp

index 3e877c541cfddb46ca37479d00e4e8967c9c3f4e..3b7b7b08c50860b7397ce7d1322ffd0149e44102 100644 (file)
@@ -638,7 +638,11 @@ throw(OptionException) {
       break;
       
     case PROOF:
+#ifdef CVC4_PROOF
       proof = true;
+#else /* CVC4_PROOF */
+      throw OptionException("This is not a proof-enabled build of CVC4; --proof cannot be used");
+#endif /* CVC4_PROOF */
       break;
       
     case NO_TYPE_CHECKING: