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

Clean up P4Tools and control-plane linking. #4520

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Mar 11, 2024

Make sure we only export what is necessary and link most libraries privately. Also remove the add_p4tools_library function, it is too inflexible and add_library works just fine.

@fruffy fruffy added enhancement This topic discusses an improvement to existing compiler code. control-plane Topics related to the control-plane or P4Runtime. p4tools Topics related to the P4Tools back end run-ubuntu18 Use this tag to trigger a Ubuntu-18 CI run. labels Mar 11, 2024
@fruffy fruffy force-pushed the fruffy/testgen_linking_fixes branch 3 times, most recently from 519271a to d9c6693 Compare March 13, 2024 19:57
@fruffy fruffy marked this pull request as ready for review March 14, 2024 12:29
@fruffy fruffy force-pushed the fruffy/testgen_linking_fixes branch from d9c6693 to 8bf36bd Compare March 14, 2024 12:29
@fruffy fruffy requested a review from asl March 15, 2024 00:15
# TODO(https://github.com/p4lang/p4c/issues/4477):
# We should not need this, but because of the way managed includes and
# libraries for Protobuf we need to explicitly add the include directories here.
SYSTEM BEFORE PUBLIC ${Protobuf_INCLUDE_DIRS}
Copy link
Contributor

Choose a reason for hiding this comment

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

While we are here, maybe solve protobuf include madness? Can we just link protobuf as library?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since we pushed the minimum Protobuf version to 3.25 we should be able to clean this up yeah. Was planning on doing it once I have some more cycles.

@fruffy fruffy added this pull request to the merge queue Mar 16, 2024
Merged via the queue into main with commit c02a8ee Mar 16, 2024
17 checks passed
@fruffy fruffy deleted the fruffy/testgen_linking_fixes branch March 16, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
control-plane Topics related to the control-plane or P4Runtime. enhancement This topic discusses an improvement to existing compiler code. p4tools Topics related to the P4Tools back end run-ubuntu18 Use this tag to trigger a Ubuntu-18 CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants