verified-network-toolchain / petr4

Petr4: Formal Semantics for P4
Apache License 2.0
74 stars 20 forks source link

Streamline Build System #361

Closed ericthewry closed 1 year ago

ericthewry commented 1 year ago

Migrate build system from a mishmash of opam, dune, and coq makefiles to just dune. The goal is to allow incremental builds to reduce iteration time, instead of requiring a full (20 minute) rebuild of poulet4 and poulet4_Ccomp.

I'm not a dune expert, so please kick the tires and figure out what's not working or can be made more ergonomic

Changes

ericthewry commented 1 year ago

@rhd @pataei The build is fixed now. please have a look!

hackedy commented 1 year ago

Works for me. Had to run git clean -fdx in the deps/poulet4_Ccomp/extraction directory to clear out some stale state from the old build system first.