FiloSottile / homebrew-musl-cross

Homebrew Formula for static-friendly musl-based GCC macOS-to-Linux cross-compilers
https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/
ISC License
547 stars 45 forks source link

Add note on expected install time #13

Closed vsmart closed 4 years ago

vsmart commented 4 years ago

Hi @FiloSottile!

Thanks for maintaining this project 🙇‍♀. I got here by trying to install a rust runtime for AWS Lambda from this blog post.

I ran:

brew install filosottile/musl-cross/musl-cross

And it took maybe 30 minutes? I was confused and canceled and retried multiple time, thinking the process got stuck.

When I saw this in the readme:

(It takes a while, getting a cup of coffee won't do.)

I figure now this kind of install time is expected.

My request:

Happy to submit a PR if you have pointers on this two questions! thanks!

brainstorm commented 4 years ago

Wouldn't it make more sense to ship this as all as pre-compiled? My CI builds are failing because of this dependency :/

haze commented 4 years ago

@FiloSottile I noticed that gmake/clang wasn't using a significant amount of cpu / resources during the compilation, is this intended? (when building llvm it uses all cores, and is way faster than this)

brainstorm commented 4 years ago

@haze Feel free to try out my fork over here, which does not require that long compile times (pre-bottled for OSX Catalina and High Sierra):

https://github.com/brainstorm/homebrew-musl-cross

FiloSottile commented 4 years ago

There is now a pre-built bottle for Catalina, built through GitHub actions making it likely I will keep updating it (but meaning there is no High Sierra bottle), and make is again running parallelized, so builds should be much faster (twice as fast on my machine), thanks @haze.

brainstorm commented 4 years ago

Fantastic! :)