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

Add support for building on Alpine targets (musl) #763

Closed
Elinvynia opened this issue May 13, 2020 · 2 comments
Closed

Add support for building on Alpine targets (musl) #763

Elinvynia opened this issue May 13, 2020 · 2 comments

Comments

@Elinvynia
Copy link

Hello! I have been messing around with trying to get the binary build statically linked, and there are two major roadblocks:

On: rust:alpine
darling_macro will refuse to compile while building on alpine with a musl target.

On: clux/muslrust
sass-rs will refuse to compile while building on debian with a musl target.

I've looked into compass-rs/sass-rs#30 and tried tweaking various other things, but nothing worked.

Thanks in advance!

@epage
Copy link
Member

epage commented May 13, 2020

darling_macro will refuse to compile while building on alpine with a musl target.

Thats strange. Have you opened an issue with them?

sass-rs will refuse to compile while building on debian with a musl target.

We have sass configured as a Rust feature. You could build with no default features and then re-enable the ones you want / work.

@Elinvynia
Copy link
Author

There is TedDriggs/darling#94, the repo had its last activity 2 months ago. The reason I asked here is in case anyone had some experience trying to compile cobalt with SASS enabled on musl.

I've managed to get it working without the SASS feature using this Dockerfile: https://github.com/Elinvynia/blog/blob/master/Dockerfile but I figured it would be nice to have it enabled.

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

No branches or pull requests

2 participants