Skip to content

Commit

Permalink
Use $(RULEDIR) to avoid an implicit dependency on `output_to_genfil…
Browse files Browse the repository at this point in the history
…es`.

PiperOrigin-RevId: 611652089
  • Loading branch information
jax authors committed Mar 1, 2024
1 parent 30d3bb4 commit 32bb3b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jaxlib/triton/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ genrule(
"_triton_ops_gen.py",
"_triton_enum_gen.py",
],
# Use $(RULEDIR) to avoid an implicit dependency on whether inputs are in bin or genfiles.
cmd = """
for src in $(SRCS); do
out=$${src//_raw/}
base=$$(basename $$src)
out=$(RULEDIR)/$${base//_raw/}
echo '# pytype: skip-file' > $${out} && \
cat $${src} |
sed -e 's/^from \\.\\./from jaxlib.mlir\\./g' |
Expand Down

0 comments on commit 32bb3b0

Please sign in to comment.