Skip to content

Commit 0176cd7

Browse files
committed
proto patching
1 parent 18d64fc commit 0176cd7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deps/ReactantExtra/WORKSPACE

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ echo "+#elif defined(__NVCC__) || (!defined(__linux__) && !defined(__ANDROID__)
6363
echo "" >> third_party/proto.patch
6464
echo " #ifndef bswap_16" >> third_party/proto.patch
6565
echo " static inline uint16_t bswap_16(uint16_t x) {" >> third_party/proto.patch
66-
sed -i.bak0 "s/protobuf.patch\\"/protobuf.patch\\", \\":proto.patch\\"/g" workspace2.bzl third_party/py/python_init_rules.bzl
66+
sed -i.bak0 "s/protobuf.patch\\"/protobuf.patch\\", \\":proto.patch\\"/g" workspace2.bzl
67+
sed -i.bak0 "s/patch_file = \\[\\"\\/\\/third_party\\/protobuf:protobuf.patch\\"/patches = \\[Label(\\"\\/\\/third_party\\/protobuf:protobuf.patch\\"), Label(\\"\\/\\/third_party:proto.patc
68+
\\"\\)], patch_args = \\[\\"-p1\\"/g" third_party/py/python_init_rules.bzl
69+
sed -i.bak0 "s/tf_http_archive(/http_archive(/g" third_party/py/python_init_rules.bzl
70+
6771
""",
6872
"""
6973
sed -i.bak0 "s/def main():/def main():\\n if TMPDIR: os.environ['TMPDIR'] = TMPDIR/g" third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc.tpl

0 commit comments

Comments
 (0)