Skip to content

Commit c70f3d3

Browse files
authored
Merge pull request #1638 from Finchiedev/main
Fix compilation for custom JSON targets
2 parents adb7c3f + 70ee124 commit c70f3d3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/global_asm.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ pub(crate) fn compile_global_asm(
235235
.arg("-")
236236
.arg("-Abad_asm_style")
237237
.arg("-Zcodegen-backend=llvm")
238+
// JSON targets currently require `-Zunstable-options`
239+
// Tracking issue: https://github.com/rust-lang/rust/issues/151528
240+
.arg("-Zunstable-options")
238241
.stdin(Stdio::piped())
239242
.spawn()
240243
.expect("Failed to spawn `as`.");

0 commit comments

Comments
 (0)