-
Notifications
You must be signed in to change notification settings - Fork 472
[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