rustc_codegen_cranelift icon indicating copy to clipboard operation
rustc_codegen_cranelift copied to clipboard

Remove the ar git dependency

Open bjorn3 opened this issue 4 years ago • 3 comments

https://github.com/bjorn3/rustc_codegen_cranelift/blob/ab425a4bca1d6df234596a1621c4cabcc73bb272/Cargo.toml#L21

It will break the build if for whatever reason this commit/repo is gone in the future. I could make it a git subtree, but I don't know if git subtree supports nesting.

bjorn3 avatar Mar 31 '21 14:03 bjorn3

Quoting from https://github.com/bjorn3/rustc_codegen_cranelift/issues/1202:

https://github.com/bjorn3/rustc_codegen_cranelift/pull/1201 changed the Cranelift deps to crates.io releases.

There is still a git dependency on my fork of the ar crate (https://github.com/bjorn3/rust-ar/tree/do_not_remove_cg_clif_ranlib). I think I will need to fix symbol table support for macOS and then poke the maintainer of rust-ar to release a new version of my PR.

bjorn3 avatar Dec 29 '21 22:12 bjorn3

I have decided to rewrite llvm's archive builder in rust. This should ensure that the produced archives are correct on all platforms supported by LLVM. The resulting crate will be published on crates.io.

https://github.com/llvm/llvm-project/blob/8ef3e895ad8ab1724e2b87cabad1dacdc7a397a3/llvm/lib/Object/ArchiveWriter.cpp

bjorn3 avatar Feb 20 '22 16:02 bjorn3

https://github.com/rust-lang/rust/pull/97485 will fix this.

bjorn3 avatar Aug 13 '22 19:08 bjorn3

Fixed by https://github.com/rust-lang/rust/pull/97485 which is pulled in as of 63fab514.

bjorn3 avatar Dec 04 '22 09:12 bjorn3

Had to revert the rustc update because of https://github.com/rust-lang/rust/pull/105082. Reopening

bjorn3 avatar Dec 04 '22 11:12 bjorn3

The issue blocking the rustup is now fixed.

bjorn3 avatar Dec 11 '22 12:12 bjorn3