Closed volkm closed 5 months ago
I am fine with this, but it adds additional complexity that I would not include if this is actually not necessary?
The change is currently not needed anymore. I personally find the new way of parsing the version better than compiling a small program though. The latter can also fail due to compilation issues which are not coming from z3 (as seen when this issue was triggered).
Do you think we need to retain the old variant as well then?
I checked and then z3 version file is present since 4.8.1. Even Ubuntu 20.04 ships with z3 version 4.8.7. So we should be fine with removing the old check.
Recently, CI builds fail because they are sometimes stuck in obtaining the z3 version. See here for an example. The problem might be due to compiling a small program with z3 in order to obtain the z3 version.
This PR obtains the z3 version by parsing the file
z3_version.h
instead. The old option is still present to preserve backwards compatibility to versions before this fix.