Issue 98897
Summary [Runtimes] Builtins target forces runtime targets to reconfigure every build
Labels cmake
Assignees
Reporter jhuber6
    Using `LLVM_ENABLE_RUNTIMES` creatures nested CMake projects that the main interface will update. Currently, these nested projects will reconfigure every time `ninja` is run, even when nothing has changed in the project itself. This wastes a lot of time, especially when maintaining multiple targets at once.

After doing some digging, I've found that it's caused by the `builtins` dependency on the runtimes target. If `compiler-rt` isn't included or the `builtins` dependency isn't added, then the problem goes away. It seems that the `ExternalProject_Add` interface makes CMake think the `builtins` target is modified after we complete its build step, which triggers the reconfigure on the runtime.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to