Skip to content

Fix compilation for custom JSON targets#1638

Merged
bjorn3 merged 1 commit intorust-lang:mainfrom
Finchiedev:main
Apr 10, 2026
Merged

Fix compilation for custom JSON targets#1638
bjorn3 merged 1 commit intorust-lang:mainfrom
Finchiedev:main

Conversation

@Finchiedev
Copy link
Copy Markdown
Contributor

A very simple change to allow compilation with custom JSON targets. Previously the Cranelift backend (and not LLVM) would produce an error as the rustc assembler process expected -Zunstable-options when JSON targets were used.

Skipped doing fancier logic as always passing -Zunstable-options seems to work fine, but could be wrong! Happy to change things if I'm wrong about how that works :)

This allows custom JSON targets to compile, as the assembler was
previously failing with an error that `-Zunstable-options` had not been
set.
Copy link
Copy Markdown
Member

@bjorn3 bjorn3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bjorn3 bjorn3 merged commit c70f3d3 into rust-lang:main Apr 10, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants