Hi all,
This is really two questions.
As recommended I activated LOCAL_SHORT_COMMANDS because my link step generates a command that's over the Windows limit.
However, as noted by many people, this results in extremely long build times when you have a large project.
Would it be possible to only enable it for linking and not for compilation?
Whilst investigating this issue I noticed that make.exe seems to pause for long periods doing apparently little between commands.
E.g. (with LOCAL_SHORT_COMMANDS set to false)
If I start make like something like this (with paths shortened for readability)...
ndk-bundle\prebuilt\windows-x86_64\bin\make.exe -f ndk-bundle\build\core\
build-local.mk SHELL=cmd NDK_PROJECT_PATH=c:\path_to_my_project -j8 APP_OPTIM=debug NDK_OUT=obj-debug NDK_LIBS_OUT=libs-debug "APP_ABI=x86 armeabi-v7a-hard"
Make is outputting each of the following lines slowly.
[x86] Compile++ : mylibrary <= somefile.cpp
[x86] Compile++ : mylibrary <= somefile1.cpp
[x86] Compile++ : mylibrary <= somefile2.cpp
ProcessExplorer indicates it's not doing much. It's as if it's sleeping or waiting for some event.
It seems to slowly prepare 8 tasks as specified by the -j8 and then in one blast 8 clang++.exe processes are started and they execute very fast as expected.
Anyone have and idea how or why the steps before clang++.exe is started are so slow?
kind regards,
James