Closed
Description
The motivating example comes from #70569.
For example,
// a.cppm
export module a;
export int a() {
return 43;
}
// use.cc
import a;
int use() {
return a();
}
After we change the implementation of a()
from return 43;
to return 44;
, we can avoid recompiling use.cc to use.o since the interface doesn't change.
This is pretty helpful to improve the user's experience by avoiding unnecessary recompilations as much as possible.