cocos console: run android compilation with only one core

Hi!

When cocos console run command is executed, ndk-build uses only one core:

running: 'C:\dev\android\ndk\ndk-build -j4 -C C:\dev\TestProject\proj.android -j1 ND
K_MODULE_PATH=C:\dev\TestProject\proj.android\../cocos2d;C:\dev\TestProject\proj.android
\../cocos2d/cocos;C:\dev\Cirote3\proj.android\../cocos2d/external'

It sets first -j4 and then -j1!

I’m the only one with this problem?

Yep, it’s a bug of cocos2d-console. I will fix it in this issue : http://www.cocos2d-x.org/issues/4446

The solution is : use -j1 as default parameter. If you want to use 4 cores for ndk-build, please input -j4 in the args.
Thanks for your feedback!

Thanks! :slight_smile: