feat(servo): isolate profiles with hardware sidecars

This commit is contained in:
2026-07-09 20:27:22 -04:00
parent 78dc86b18e
commit c28ec2bee8
92 changed files with 10306 additions and 1485 deletions
+7 -7
View File
@@ -201,18 +201,18 @@ mod macos {
PathBuf::from(env::var("OUT_DIR").unwrap()).join("shaders.metallib");
println!("cargo:rerun-if-changed={}", shader_path);
let output = Command::new("xcrun")
let mut command = Command::new("xcrun");
command.args(["-sdk", "macosx", "metal"]);
if env::var("DEBUG").as_deref() == Ok("true") {
command.args(["-gline-tables-only", "-MO"]);
}
let output = command
.args([
"-sdk",
"macosx",
"metal",
"-gline-tables-only",
"-mmacosx-version-min=10.15.7",
"-MO",
"-c",
shader_path,
"-include",
(header_path.to_str().unwrap()),
header_path.to_str().unwrap(),
"-o",
])
.arg(&air_output_path)