diff mbox series

[meta-tensorflow,9/14] bazel-native: fix compile failure

Message ID 20260325021719.1526525-10-hongxu.jia@windriver.com
State New
Headers show
Series Upgrade tensorflow from 2.19.0 to 2.21.0 | expand

Commit Message

Hongxu Jia March 25, 2026, 2:17 a.m. UTC
According to [1][2], fix compile bazel failed

[1] https://github.com/bazelbuild/bazel/issues/27349
[2] https://github.com/bazelbuild/bazel/issues/26162

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 recipes-devtools/bazel/bazel-native_7.7.0.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/recipes-devtools/bazel/bazel-native_7.7.0.bb b/recipes-devtools/bazel/bazel-native_7.7.0.bb
index 400e169..76c3983 100644
--- a/recipes-devtools/bazel/bazel-native_7.7.0.bb
+++ b/recipes-devtools/bazel/bazel-native_7.7.0.bb
@@ -30,7 +30,7 @@  S = "${UNPACKDIR}"
 inherit bazel-base
 
 EXTRA_BAZEL_ARGS = " \
-    --host_javabase=@local_jdk//:jdk \
+    --tool_java_runtime_version=local_jdk \
     --python_path=python3 \
     --distdir=${TS_DL_DIR} \
     ${@oe.utils.conditional("BAZEL_JOBS", "", "", "--jobs=${BAZEL_JOBS}", d )} \
@@ -40,6 +40,7 @@  EXTRA_BAZEL_ARGS = " \
 
 do_compile[network] = "1"
 do_compile () {
+    BAZEL_DEV_VERSION_OVERRIDE="7.7.0" \
     TMPDIR="${TMPDIR}/bazel" \
     VERBOSE=yes \
     EXTRA_BAZEL_ARGS="${EXTRA_BAZEL_ARGS}" \