try adding an sh_wrapper around heir-opt to populate env vars #2178
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This should fix #885 (comment) but it needs way more testing
Tests run:
bazel runwith yosys optimizer:bazel run //tools:heir-opt -- --yosys-optimizer $PWD/tests/Transforms/yosys_optimizer/arith_ops.mlirbazel testa test target (for detecting runfiles dir)bazel test tests/Transforms/new_layout_propagation:add_one.mlir.testbazel-bin:bazel-bin/tools/heir-opt --yosys-optimizer --canonicalize --cse --secret-forget-secrets $PWD/tests/Transforms/yosys_optimizer/arith_ops.mlirbazel test frontend:e2e_test)I still want to test:
abcand the techmap files are in the same directory as the binary)pip install -e .pip install .#vc4a