Hi, everyone! I have some troubles with compilation time, it’s very long after reboot computer or waiting long time.
So, steps for reproduce:
- Build LLVM from sources. OK.
- Change something in one cpp file. OK.
- Build LLVM again. Not a long compile time for that case because I’ve changed only one cpp file, that’s ok. OK.
But if I reboot computer after changing cpp file or wait some long time and try to build LLVM after that again, compile time will be very long, like in first step. But I’ve changed only one cpp file, and in that case don’t need to recompile all LLVM. Why it’s happens and how can I avoid this?
Cmake command:
cmake -G Ninja ../llvm \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DLLVM_TARGETS_TO_BUILD=X86 \
-DLLVM_ENABLE_PROJECTS=clang \
Ninja command:
ninja -j 4 -l 1