diff mbox series

[meta-tensorflow,2/3] bazel: disable color in bazel output

Message ID 20260402001645.1717722-2-martin.jansa@gmail.com
State New
Headers show
Series [meta-tensorflow,1/3] bazel: fix typo in .patch file | expand

Commit Message

Martin Jansa April 2, 2026, 12:16 a.m. UTC
From: Martin Jansa <martin.jansa@gmail.com>

Doesn't interact well with the log files stored for bitbake tasks

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
---
 classes/bazel.bbclass                        | 2 ++
 recipes-devtools/bazel/bazel-native_7.7.0.bb | 1 +
 2 files changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/classes/bazel.bbclass b/classes/bazel.bbclass
index 3d5e7b3..43e2c9c 100644
--- a/classes/bazel.bbclass
+++ b/classes/bazel.bbclass
@@ -113,6 +113,8 @@  build --python_path=python3
 fetch --distdir=${TS_DL_DIR}
 build --distdir=${TS_DL_DIR}
 
+build --color=no
+
 ${@bazel_get_flags(d)}
 
 EOF
diff --git a/recipes-devtools/bazel/bazel-native_7.7.0.bb b/recipes-devtools/bazel/bazel-native_7.7.0.bb
index 5fcd55a..042f456 100644
--- a/recipes-devtools/bazel/bazel-native_7.7.0.bb
+++ b/recipes-devtools/bazel/bazel-native_7.7.0.bb
@@ -33,6 +33,7 @@  EXTRA_BAZEL_ARGS = " \
     --tool_java_runtime_version=local_jdk \
     --python_path=python3 \
     --distdir=${TS_DL_DIR} \
+    --color=no \
     ${@oe.utils.conditional("BAZEL_JOBS", "", "", "--jobs=${BAZEL_JOBS}", d )} \
     ${@oe.utils.conditional("BAZEL_JOBS", "", "", "--local_cpu_resources=${BAZEL_JOBS}", d )} \
     ${@oe.utils.conditional("BAZEL_MEM", "", "", "--local_ram_resources=${BAZEL_MEM}", d )} \