[PATCH] D54978: Move the SMT API to LLVM
Brian Rzycki via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 12 15:55:20 PST 2019
brzycki added a comment.
In D54978#1395476 <https://reviews.llvm.org/D54978#1395476>, @mikhail.ramalho wrote:
> I'm wondering if we can remove the binary requirement all together: is it possible to run a small program that would return EXIT_SUCCESS if the library is the correct version?
Hi @mikhail.ramalho, I don't think this is feasible unfortunately. If we're using a cross-compiler the emitted binary won't be native to the platform. In other words, you cannot test for Z3 as a run-time property.
I looked at the Z3 source and they do have a `z3_version.h` file now and was added in version 126.96.36.199. You may be able to use the header directly, but I'm not sure how `find_package()` parses for library versions and if this is useful or not. The generated header is named `src/util/version.h` in this initial commit:
and was renamed last September to `src/util/z3_version.h` in this commit:
CHANGES SINCE LAST ACTION
More information about the llvm-commits