mirror of
https://github.com/ROCm/jax.git
synced 2025-04-17 12:26:07 +00:00
Use $(RULEDIR)
to avoid an implicit dependency on output_to_genfiles
.
PiperOrigin-RevId: 611652089
This commit is contained in:
parent
30d3bb4aba
commit
32bb3b0613
@ -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' |
|
||||
|
Loading…
x
Reference in New Issue
Block a user