From 70ee124a0b3f2230a3676c5b54c295b5220e9970 Mon Sep 17 00:00:00 2001 From: Finchie Date: Fri, 10 Apr 2026 12:31:22 +0800 Subject: [PATCH] Call rustc assembler with `-Zunstable-options` This allows custom JSON targets to compile, as the assembler was previously failing with an error that `-Zunstable-options` had not been set. --- src/global_asm.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/global_asm.rs b/src/global_asm.rs index b149885778..5765601763 100644 --- a/src/global_asm.rs +++ b/src/global_asm.rs @@ -235,6 +235,9 @@ pub(crate) fn compile_global_asm( .arg("-") .arg("-Abad_asm_style") .arg("-Zcodegen-backend=llvm") + // JSON targets currently require `-Zunstable-options` + // Tracking issue: https://github.com/rust-lang/rust/issues/151528 + .arg("-Zunstable-options") .stdin(Stdio::piped()) .spawn() .expect("Failed to spawn `as`.");