This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Add custom target to create build directory
ClosedPublic

Authored by Hahnfeld on Oct 25 2017, 10:29 AM.

Details

Summary

CMake does a poor job in tracking dependencies on files and directories
directly. Create custom target similar to the configuration step.
On my system, this avoids the reconfiguration on each build.

Diff Detail

Repository
rL LLVM

Event Timeline

Hahnfeld created this revision.Oct 25 2017, 10:29 AM

Gentle ping

beanz accepted this revision.Nov 7 2017, 3:14 PM

LGTM. I keep meaning to spend time rewriting all this to use the LLVMExternalProjectUtils module which avoids issues like this, but I never really have the time to do it.

This revision is now accepted and ready to land.Nov 7 2017, 3:14 PM

LGTM. I keep meaning to spend time rewriting all this to use the LLVMExternalProjectUtils module which avoids issues like this, but I never really have the time to do it.

Sorry, by far no CMake expert. I'd volunteer otherwise to get that fixed correctly...

This revision was automatically updated to reflect the committed changes.