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

Remove boost::filesystem from P4Testgen. #3944

Merged
merged 1 commit into from
Mar 27, 2023
Merged

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Mar 27, 2023

No description provided.

@@ -77,7 +77,7 @@ const BMv2_V1ModelProgramInfo *BMv2_V1ModelTestgenTarget::initProgram_impl(

Bmv2TestBackend *BMv2_V1ModelTestgenTarget::getTestBackend_impl(
const ProgramInfo &programInfo, SymbolicExecutor &symbex,
const boost::filesystem::path &testPath, boost::optional<uint32_t> seed) const {
const std::filesystem::path &testPath, boost::optional<uint32_t> seed) const {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we change boost::optional to std::optional too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, the corresponding PR can be found here: #3942

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will also try to do this for std::variant, but that is a bit more tricky.

Copy link
Contributor

Choose a reason for hiding this comment

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

got it, is there a reason we are moving away from boost - is it to avoid extra dependencies?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, boost adds compile time and binary size overhead. It is also one of the major sources for build issues (next to protobuf). So I am trying to at least fix some low-hanging fruits.

@fruffy fruffy force-pushed the fruffy/remove_boost_fs branch from 971c3be to e90e792 Compare March 27, 2023 19:17
@fruffy fruffy added the p4tools Topics related to the P4Tools back end label Mar 27, 2023
@fruffy fruffy force-pushed the fruffy/remove_boost_fs branch from e90e792 to 80d1b8e Compare March 27, 2023 19:25
@fruffy fruffy merged commit 97408a0 into main Mar 27, 2023
@fruffy fruffy deleted the fruffy/remove_boost_fs branch March 28, 2023 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p4tools Topics related to the P4Tools back end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants