From d591a116ea116cd22f4bc88b3b4ad4d5f75dc6e8 Mon Sep 17 00:00:00 2001 From: starr-openai Date: Thu, 28 May 2026 22:55:05 -0700 Subject: [PATCH] bazel: keep local cache artifacts hermetic --- patches/webrtc-sys_hermetic_darwin_sysroot.patch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/patches/webrtc-sys_hermetic_darwin_sysroot.patch b/patches/webrtc-sys_hermetic_darwin_sysroot.patch index c90edbd08e..b8cb6f7ca2 100644 --- a/patches/webrtc-sys_hermetic_darwin_sysroot.patch +++ b/patches/webrtc-sys_hermetic_darwin_sysroot.patch @@ -6,6 +6,10 @@ index 3b4a24a..6aa06ff 100644 -use std::path::Path; +use std::fs; +use std::path::Path; +@@ -28,0 +30,3 @@ ++ // Keep cxx-build inside Bazel's per-action output tree instead of the ++ // scratch crate's compile-time OUT_DIR from whichever machine built it. ++ env::set_var("CARGO_TARGET_DIR", env::var_os("OUT_DIR").unwrap()); @@ -118,1 +119,9 @@ - println!("cargo:rustc-link-search=native={}", webrtc_lib.to_str().unwrap()); + let webrtc_link_lib = if env::var_os("WEBRTC_SYS_LINK_OUT_DIR").is_some() {