From feccf5a420d299d4570e07bf6eea297183e7fee9 Mon Sep 17 00:00:00 2001 From: David Zbarsky Date: Tue, 11 Nov 2025 00:22:02 -0500 Subject: [PATCH] Only emit sysroot warning when efficient merkle tree cache feature exists --- toolchain/internal/system_module_map.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain/internal/system_module_map.bzl b/toolchain/internal/system_module_map.bzl index 2976d829..8aa969f5 100644 --- a/toolchain/internal/system_module_map.bzl +++ b/toolchain/internal/system_module_map.bzl @@ -83,7 +83,7 @@ def _system_module_map(ctx): if len(sysroot_files) == 1: template_dict.add("%sysroot%", umbrella_submodule_closure(sysroot_files[0])) else: - if sysroot_files: + if sysroot_files and bazel_features.rules.merkle_cache_v2: # buildifier: disable=print print("WARNING: Sysroot {} resolved to {} files. Consider using the `sysroot` repository rule in @toolchains_llvm//toolchain:sysroot.bzl which provides a single-file (directory) sysroot for more efficient builds.".format( ctx.attr.sysroot_files.label,