Skip to content

Commit 7975aa9

Browse files
Craigacpkarllessard
authored andcommitted
Fixes for Windows build.
1 parent 43bfdfb commit 7975aa9

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

tensorflow-core/tensorflow-core-native/WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ http_archive(
1515
patch_args = ["-p1"],
1616
patch_cmds = [
1717
"find tensorflow third_party/xla/third_party/tsl -name \\*.proto | xargs sed -i.bak '/^option java_package/d'",
18-
"find tensorflow third_party/xla/third_party/tsl -name \\*.proto | xargs sed -i.bak 's/^package tensorflow\\([^;\\s]*\\).*$/package tensorflow\\1;\\roption java_package = \"org.tensorflow.proto\\1\";/'",
18+
"find tensorflow third_party/xla/third_party/tsl -name \\*.proto | xargs sed -i.bak 's/^package tensorflow\\([^;]*\\).*$/package tensorflow\\1;\\noption java_package = \"org.tensorflow.proto\\1\";/'",
1919
],
2020
urls = [
2121
"https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.15.0.tar.gz",
@@ -115,4 +115,4 @@ tf_workspace1()
115115

116116
load("@org_tensorflow//tensorflow:workspace0.bzl", "tf_workspace0")
117117

118-
tf_workspace0()
118+
tf_workspace0()
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
#!/bin/bash
2-
${BAZEL_CMD:=bazel} clean
2+
set -eu
3+
source $(pwd -P)/scripts/bazel_common.sh
4+
${BAZEL_CMD:=bazel} clean

0 commit comments

Comments
 (0)