Skip to content

Commit e175cf0

Browse files
authored
A comic number of backslashes to support rewriting patch files defined in enzyme-jax (#1587)
1 parent 6e00425 commit e175cf0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

deps/ReactantExtra/WORKSPACE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ http_archive(
2020
sha256 = ENZYMEXLA_SHA256,
2121
strip_prefix = "Enzyme-JAX-" + ENZYMEXLA_COMMIT,
2222
urls = ["https://github.com/EnzymeAD/Enzyme-JAX/archive/{commit}.tar.gz".format(commit = ENZYMEXLA_COMMIT)],
23+
patch_cmds = [
24+
"""
25+
sed -i.bak0 "s/\\\\\\\\\\\\\\\\\\/\\\\\\\\\\\\\\\\\\/:patches/@enzyme_ad\\\\\\\\\\\\\\\\\\/\\\\\\\\\\\\\\\\\\/:patches/g" workspace.bzl
26+
""",
27+
]
2328
)
2429

2530
CUPTI_OLD = [

0 commit comments

Comments
 (0)