mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 17:44:08 +00:00
Display version number using new format
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
caced62f40
commit
a6db55d21f
|
@ -214,16 +214,7 @@ void parse_cmd_line_args(int argc, char ** argv) {
|
|||
exit(0);
|
||||
}
|
||||
if (strcmp(opt_name, "version") == 0) {
|
||||
#ifdef _EXTERNAL_RELEASE
|
||||
std::cout << "Z3 version " << Z3_MAJOR_VERSION << "." << Z3_MINOR_VERSION << "\n";
|
||||
#else
|
||||
std::cout
|
||||
<< "Z3 version (major minor build revision): "
|
||||
<< Z3_MAJOR_VERSION << " "
|
||||
<< Z3_MINOR_VERSION << " "
|
||||
<< Z3_BUILD_NUMBER << " "
|
||||
<< Z3_REVISION_NUMBER << "\n";
|
||||
#endif
|
||||
std::cout << "Z3 version " << Z3_MAJOR_VERSION << "." << Z3_MINOR_VERSION << "." << Z3_BUILD_NUMBER << "\n";
|
||||
exit(0);
|
||||
}
|
||||
else if (strcmp(opt_name, "smt") == 0) {
|
||||
|
|
Loading…
Reference in a new issue