Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support rustc_codegen_cranelift #252

Open
AccessViolation95 opened this issue Jun 9, 2024 · 4 comments
Open

Support rustc_codegen_cranelift #252

AccessViolation95 opened this issue Jun 9, 2024 · 4 comments

Comments

@AccessViolation95
Copy link

AccessViolation95 commented Jun 9, 2024

It would be nice if cargo-asm supported rustc_codegen_cranelift. It would be nice for comparing the output of Cranelift and LLVM.

In order to make rustc use Cranelift, I have installed it following these instructions: https://github.com/rust-lang/rustc_codegen_cranelift

My project's Cargo.toml looks like this:

# This line needs to come before anything else in Cargo.toml
cargo-features = ["codegen-backend"]

[package]
name = "quick_test"
version = "0.1.0"
edition = "2021"

[profile.release]
codegen-backend = "cranelift"

The output I get when running cargo asm is:

error: Unknown option `-x86-asm-syntax`

error: could not compile `quick_test` (bin "quick_test") due to 1 previous error

Cargo failed with exit status: 101
@mert-kurttutan
Copy link

mert-kurttutan commented Jun 12, 2024

Fyi, this project is unmaintained. You might want to try this issue on cargo-show-asm, which is well maintained and the author is quite responsive.

@AccessViolation95
Copy link
Author

Already found that out and did that shortly after creating this issue here. Thanks 👍

@mert-kurttutan
Copy link

Oh, great. Anyways, it is a good documentation for whoever stumbles upon this issue.

@AccessViolation95
Copy link
Author

I'll link to the issue on the other repo, which was answered turned into an FAQ item, for whoever finds this:
pacak/cargo-show-asm#287

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

No branches or pull requests

2 participants