From dd1aa8922a5e1505b17c46ab120f11b5979a2b66 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 24 Sep 2016 21:07:26 +0200 Subject: Add idea: Checksum of preprocessed output as change detection --- build2/checksum-change-detection | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 build2/checksum-change-detection diff --git a/build2/checksum-change-detection b/build2/checksum-change-detection new file mode 100644 index 0000000..3069800 --- /dev/null +++ b/build2/checksum-change-detection @@ -0,0 +1,9 @@ +- Checksum of preprocessed output as change detection [idea] + +If instead of a timestamp (or, really, in addition to timestamp) we hash the +preprocessor output, then we can detect (and avoid updating on) whitespace- +only changes (e.g., edited a comment). + +The big question will be how to reuse this output if we do need to recompile. + +Also, this may fit nicely with the build slave idea. -- cgit v1.1