We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ bat -p main.rs pub extern "C" fn f() -> i32 { 92 } $ rustc -C lto=fat --crate-type rlib main.rs $ rustc -C lto=fat --crate-type cdylib main.rs $ rustc -C lto=fat --crate-type rlib,cdylib main.rs error: lto can only be run for executables, cdylibs and static library outputs error: aborting due to previous error $ rustc --version rustc 1.54.0-beta.1 (bf62f4de3 2021-06-23)
As you see, rustc agrees to compile rlib and cdylib with lto separately, but refuses when they are both specified.
rustc
The text was updated successfully, but these errors were encountered:
lto=true
crate-type = ["cdylib", "rlib"]
I think this is a duplicate of #51009.
Sorry, something went wrong.
No branches or pull requests
As you see,
rustc
agrees to compile rlib and cdylib with lto separately, but refuses when they are both specified.The text was updated successfully, but these errors were encountered: