I had the same problem. I figured out, that I had included a folder that contained some source code and some documentation files as well. I think it was a case of CMSIS folder. Even though I have excluded the documentation files from the build, there was still some delay, before the compilation actually started. When I included just folders that contains source code alone (didn’t use exclude filter), the delay was gone.