wcampbell
wcampbell
fyi: bitvec needs to use heavy usage of inline already to get decent performance: https://github.com/search?q=repo%3Aferrilab%2Fbitvec+inline&type=code
> May be worth at this point to add in the docs about how to reduce binary size, given that there's now a feature flag + optimizations around it. Could...
> > May be worth at this point to add in the docs about how to reduce binary size, given that there's now a feature flag + optimizations around it....
I tried both of those solutions, same results of failure.
Looks like the same as my CI: ``` $ cross --version cross 0.2.5 (e2e643f 2024-01-10) mempeek $ cross build --bin mempeek --locked --release --target mips-unknown-linux-musl -Zbuild-std="core,std,alloc,proc_macro" Compiling mempeek v0.1.5 (/home/wcampbell/projects/wcampbell/mempeek)...
Would this be something the rust-lang compiler guys would look into? I assume it's lower priority for them.
I tried yesterday to use https://github.com/richfelker/musl-cross-make and had the same issues with CRT.
So with my local `musl-cross-make`, I can get the linking further by adding the location of the sysroot to `-L`: ``` > fd crt lib/gcc/mips-linux-musl/9.4.0/crtbegin.o lib/gcc/mips-linux-musl/9.4.0/crtbeginS.o lib/gcc/mips-linux-musl/9.4.0/crtbeginT.o lib/gcc/mips-linux-musl/9.4.0/crtend.o lib/gcc/mips-linux-musl/9.4.0/crtendS.o lib/gcc/mips-linux-musl/9.4.0/crtfastmath.o...
Maybe this will work? I don't have time to check: https://github.com/rust-lang/wg-cargo-std-aware/issues/81 / https://stackoverflow.com/a/74060091.
I opened https://github.com/rust-lang/rust/issues/120655, just in case this is an rustc bug.