From d183c7e68eb5b191fcc9d52eaeb86ce1211ba9f7 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Wed, 2 Nov 2011 13:05:11 +0000 Subject: [PATCH] give an option error if the user specifies --proof in a non-proof-enabled build --- src/util/options.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/options.cpp b/src/util/options.cpp index 3e877c541..3b7b7b08c 100644 --- a/src/util/options.cpp +++ b/src/util/options.cpp @@ -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: -- 2.30.2