Now we’re getting somewhere. The reason why that triggered a rebuild is that the compiler couldn’t tell—or, more likely, incremental compilation lacked the hooks to tell the build system—that a rebuild was not necessary.
-
-
My suggestion is to use a dwarf parser to generate the hash without touching the compiler. That might require making the build system, not cargo, drive rustc though.
-
Yeah, that’s what I was trying to say earlier, but didn’t make it clear.
- 6 more replies
New conversation -
-
-
Can the build system not just (“just”) hash over the non-doc/debug parts of the file? Might require adding that path to Bazel/etc, but probably more people who can do that than write rustc patches. (Or is that section information lost somewhere?)
-
note that from rust's POV there's no "file", the compilation unit is the crate. you'd need compiler support to be able to tell it to "not reload" a given file since it doesn't look at crates at the file-level
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.