-
Notifications
You must be signed in to change notification settings - Fork 463
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
[build] enable concurrent compilation #2888
Conversation
IMO this is not really portable, what about mingw on windows? |
yes, I was worried about the same thing. mingw on windows doesn't really support concurrent compilation, but it won't fail, the option is just ignored. |
Actually mingw does support concurrent compilation, but |
I've changed that to |
I use gmake quite regularly and used dmake before (it uses |
before real 2m18.077s user 1m55.516s sys 0m21.719s after real 0m30.610s user 2m34.688s sys 0m28.359s
done, I've added a benchmark aswell. On my AMD FX-8300 8C it's 4,6x faster. |
Thanks |
Surely this is the wrong fix - shouldn't the caller control the fanout by passing Currently this causes unbounded fan out, which is deeply wrong, and it ignores a caller passed in setting - e.g. Compilation on my box now regularly fails with:
|
Sounds reasonable. Open to reverting this change. |
ok, sorry, I tested again and you're right. -j 0 is indeed unlimited. The original nprocs limit was removed because it's hard to get the value safely on all platforms. I've reverted the change in #2977 btw optflags https://github.com/sass/libsass/pull/2977/files#diff-b67911656ef5d18c4ae36cb6741b7965L19 also can't be overridden. |
this significantly reduce build time