Issue
We have a quite large C++ project that we build cross platform for Android and iOS. Xcode uses all cores when compiling and is much faster (4-5x depending on machine). Is there any way to improve the abysmal performance of the NDK? Any multi CPU options? We have precompiled headers, but it seems to me it is use of resources that is at fault.
So any tips or tricks to speed up android ndk project build times would be much appreciated!
Solution
You aren't required to use Android's build system for your compilation; the tools are all available for use within a Makefile (though you will need to take care to set up include paths, library paths, and compiler options).
Since you can create your own Makefile instead of using the default build scripts, you can use th -jN
option to specify the number of simultaneous operations to perform.
Answered By - mah
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.