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

[PSA] Public Service Announcements Thread #1299

Open
bjorn3 opened this issue Nov 27, 2022 · 7 comments
Open

[PSA] Public Service Announcements Thread #1299

bjorn3 opened this issue Nov 27, 2022 · 7 comments

Comments

@bjorn3
Copy link
Member

bjorn3 commented Nov 27, 2022

This issue will be used to communicate changes to the way cg_clif is built or used as well as to notify about the implementation of major features.

@bjorn3
Copy link
Member Author

bjorn3 commented Nov 27, 2022

I will lock this issue to prevent noise.

@rust-lang rust-lang locked and limited conversation to collaborators Nov 27, 2022
@bjorn3
Copy link
Member Author

bjorn3 commented Nov 28, 2022

In about 24h from now I will be merging https://github.com/bjorn3/rustc_codegen_cranelift/pull/1300, which renames the build/ directory to dist/. This means you will have to use dist/cargo-clif instead of build/cargo-clif.

@bjorn3 bjorn3 pinned this issue Feb 4, 2023
@bjorn3
Copy link
Member Author

bjorn3 commented Feb 4, 2023

https://github.com/bjorn3/rustc_codegen_cranelift/pull/1347 will drop the precompiled CI artifacts for cross compiling from x86_64 Linux to AArch64 and S390x Linux to reduce the negative effects on CI time this PR has. Cross compile artifacts for x86_64 Linux to x86_64 MinGW Windows will remain and so will all non-cross-compilation artifacts. If you want to cross-compile for one of the dropped targets you will need to build cg_clif yourself.

@bjorn3
Copy link
Member Author

bjorn3 commented Mar 26, 2023

@bjorn3
Copy link
Member Author

bjorn3 commented Oct 21, 2023

I just noticed a huge runtime perf improvement for the simple-raytracer benchmark caused by the update from nightly-2023-10-09 to nightly-2023-10-19. (links are to the benchmark results) Compilation time improved for both the LLVM and Cranelift backend, but relatively speaking the improvement was bigger for the Cranelift backend. I am fairly certain this improvement comes from rust-lang/rust#116505, which enables the MIR inliner to inline small functions cross-crate even if they lack #[inline].

@bjorn3
Copy link
Member Author

bjorn3 commented May 11, 2024

macOS builds were silently broken for about two weeks as github switched the architecture of the macOS CI runners from x86_64 to arm64, causing us to build arm64 binaries. These binaries were broken as arm64 macOS is currently not supported: #1248 I've pushed a fix to force building x86_64 binaries again.

@bjorn3
Copy link
Member Author

bjorn3 commented Jun 21, 2024

As of #1500 arm64 macOS (Apple Silicon) is now supported and pre-compiled builds are now available at https://github.com/bjorn3/rustc_codegen_cranelift/releases/tag/dev.

Edit: If you use XCode 15, make sure to use RUSTFLAGS="-Clink-arg=-ld_classic" as the new linker doesn't like our object files.
Edit2: Now works fine with XCode 15 as of 3d54358.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant