From a2fe645fd79cae0781955b244932e89c16ceb71c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 11 Jul 2018 09:13:45 +0200 Subject: Force reprocessing for module interface units if compiling with VC --- build2/cc/compile-rule.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build2/cc') diff --git a/build2/cc/compile-rule.cxx b/build2/cc/compile-rule.cxx index 61d5984..a41203b 100644 --- a/build2/cc/compile-rule.cxx +++ b/build2/cc/compile-rule.cxx @@ -973,6 +973,16 @@ namespace build2 // t.prerequisite_targets! // extract_modules (a, bs, t, li, tt, src, md, move (tu.mod), dd, u); + + // Currently in VC module interface units must be compiled from the + // original source (something to do with having to detect and store + // header boundaries in the .ifc files). + // + if (cid == compiler_id::msvc) + { + if (md.type == translation_type::module_iface) + psrc.second = false; + } } // If anything got updated, then we didn't rely on the cache. However, -- cgit v1.1