Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p4tool: Fix build with Z3 installed in non-standard path #3932

Merged
merged 4 commits into from
Mar 21, 2023

Conversation

vlstill
Copy link
Contributor

@vlstill vlstill commented Mar 20, 2023

This fixes build with Z3 in non-standard location & it also improves documentation of the FindZ3 cmake module.

... so that it is visible when declaring any library under p4tools
This fixes build with Z3 installed to non-standard locations.
Copy link
Collaborator

@fruffy fruffy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - small request: Could you also add 4.12.0 as the Z3 max version? Anything above and the tool will crash.

backends/p4tools/CMakeLists.txt Outdated Show resolved Hide resolved
@vlstill vlstill merged commit 1b47d14 into main Mar 21, 2023
@vlstill vlstill deleted the vstill/fix-z3-find-include branch March 21, 2023 14:52
@@ -34,6 +34,19 @@ project(P4TOOLS VERSION ${P4C_SEM_VERSION_STRING})
# inherit FindLibGc.
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

# We need a fairly recent version of Z3.
set(Z3_MIN_VERSION "4.8.14")
# But 4.12+ is currently broken with libGC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is kinda unfortunate. Is this issue reported somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fabian would know more, see also #3930 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants