cc-rs icon indicating copy to clipboard operation
cc-rs copied to clipboard

Change prefix for musl targets to not use wrapper

Open Timmmm opened this issue 3 years ago • 3 comments

This should fix cross-compilation to musl when you haven't manually set the compiler name. It's also more consistent with the existing musl targets (e.g. mips).

See #105 and https://github.com/FiloSottile/homebrew-musl-cross#:~:text=If%20you%20encounter%20issues

Tested with brew install FiloSottile/musl-cross/musl-cross on Mac.

Timmmm avatar Feb 07 '22 20:02 Timmmm

Uhm not sure why the tests are failing and there's no error messages :-/

Timmmm avatar Feb 07 '22 20:02 Timmmm

At least on Arch Linux, the musl package for x86-64 contains musl-gcc, but not x86_64-linux-musl-cc.

m-ou-se avatar May 11 '22 16:05 m-ou-se

Yeah I figured that out eventually. IIRC it's the same on Debian based distros too unfortunately.

I guess searching for both options might be an option, or using x86_64-linux-musl-cc on all host platforms except Linux.

Timmmm avatar May 11 '22 16:05 Timmmm