This is an archive of the discontinued LLVM Phabricator instance.

Builds are not clean between repeated runs
ClosedPublic

Authored by Andi on Jan 18 2017, 5:18 PM.

Details

Summary

Motivation:
When doing a compile multiple times in a row only the first build is actually happening.
All subsequent runs to build do nothing as make detects that none of the files have changed.

What changed:
This deletes the entire build directory before each compile happens, thereby ensuring that each run has a clean build.
Since the build directory is deleted before the compile, the "last" build directory is kept. In case there is a failure this build directory can be used to look at what happened.

To delete the build directory I am using the -p flag of runN to perform the cleaning before the timing run.

Diff Detail

Repository
rL LLVM

Event Timeline

Andi created this revision.Jan 18 2017, 5:18 PM
This revision is now accepted and ready to land.Jan 18 2017, 8:01 PM
This revision was automatically updated to reflect the committed changes.