[PATCH] D54978: Move the SMT API to LLVM

Mikhail Ramalho via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 12 15:00:09 PST 2019


mikhail.ramalho added a comment.

Looks like my last email got lost:

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?

Something like:

  #include <z3.h>
  
  int main()
  {
    unsigned int major, minor, build, revision;
    Z3_get_version(&major, &minor, &build, &revision);
    
    if(major >= 4 && minor >= 7 && build >= 1)
      return EXIT_SUCCESS;
  
    return EXIT_FAILURE;
  }

This would be part of FindZ3.cmake and would set Z3_FOUND.

Do you guys think it's possible? I'm almost certain it can be done with autotools, but I'm clueless when it comes to cmake.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D54978/new/

https://reviews.llvm.org/D54978





More information about the cfe-commits mailing list