0

don't check outdir depth for chromeos chroot case

Bug: 406824515
Change-Id: I8cbb8801b88ecad86da3a2dfe62f5d709616fd3c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6406573
Reviewed-by: Joel Hockey <joelhockey@chromium.org>
Auto-Submit: Fumitoshi Ukai <ukai@google.com>
Commit-Queue: Joel Hockey <joelhockey@chromium.org>
Commit-Queue: Fumitoshi Ukai <ukai@google.com>
Cr-Commit-Position: refs/heads/main@{#1439146}
This commit is contained in:
Fumitoshi Ukai 2025-03-27 18:22:45 -07:00 committed by Chromium LUCI CQ
parent 06a7224d74
commit 60476b81a7

@ -1855,8 +1855,10 @@ if (is_chromeos && enable_js_type_check) {
}
}
if (use_remoteexec) {
if (use_remoteexec && target_os != "chromeos" && rbe_exec_root != "/") {
# Different nesting levels technically work, but cache hits are basically zero.
# for `target_os="chromeos" rbe_exec_root="/"` is used for chromeos chroot
# and it doesn't use 2-level out dir.
assert(
rebase_path("//", root_build_dir) == "../../",
"In order for remote builds (use_remoteexec=true) to have cache hits, output directories should be nested two directories deep within src (e.g. \"out/Debug\", or \"foo/bar\"). Found: $root_build_dir")