Closed Shnatsel closed 4 months ago
This is the problem: https://github.com/nervosnetwork/faster-hex/blob/7ae3424144e578fe9023be8f2c11268d8cf15e16/src/lib.rs#L76 cfg(target_feature = "...")
will always be false for cg_clif currently as I haven't implemented CodegenBackend::target_features
yet. It looks like faster-hex 0.8.1 has removed this condition, so updating to that version would be a workaround. Shouldn't be too hard to implement CodegenBackend::target_features
based the target features specified in the target spec though at least.
Indeed, I can confirm that upgrading to 0.8.1 fixes the issue. And using the cranelift backend cuts the debug build time by 40% for cargo audit
:tada:
As of https://github.com/rust-lang/rustc_codegen_cranelift/commit/45d8c121ba02c825379b655d8dd74e1843e98d62 SSE is now reported as enabled on x86_64 by cg_clif.
The error is:
The signature of the missing function is:
or see it in context here: https://github.com/nervosnetwork/faster-hex/blob/856aba7b141a5fe16113fae110d535065882f25a/src/lib.rs#L72-L76
rustc version:
This issue blocks the compilation of anything that depends on
gix
, the Git implementation in Rust. That includescargo
itself, numerous Cargo plugins (cargo audit
,cargo deny
,cargo-semver-checks
,cargo edit
,cargo release
,cargo vet
, etc) and other tools such asstarship
,bacon
,onefetch
, etc.