forked from NomicFoundation/slang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Output graph files to
target
directory and improve Graphviz output (N…
…omicFoundation#1167) The graph files `.mmd` and `.dot` files are not committed to the repository and hence writing them to the source directory (inside the `generated` folder) does not provide any benefit and even has some drawbacks (eg. build errors when switching branches and test are no longer present). This PR changes the output directory to be inside the `target` directory in the `solidity_cargo_tests` crate directory. These output files are opt-in via a `RENDER_GRAPHS` environment variable. The performance impact of their generation is not too big, but they are generally unnecessary unless we're debugging binding rules. There are also some tweaks and added information to the `.dot` file output to improve graph readability and make tracing nodes to rules easier.
- Loading branch information
Showing
2 changed files
with
59 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters