<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61457>61457</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang should not re-write .pcm for C++ module if it's unchanged
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rnikander
</td>
</tr>
</table>
<pre>
This came up on the CMake discussion forum. I'm trying to get my project working with C++20 modules, and I noticed everything recompiling when I changed something in the private module segment (ie, after `module :private`)
https://discourse.cmake.org/t/c-20-modules-update/7330/41
I'm not 100% sure myself whether Clang should do this, but it seems like it should. It seems like the compiler is in a better position to do this than the build tool. (?)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUks-OszgQxJ_GXFpBxkACBw4zGSHlsLd9AYMb8MZ_kN2eKG-_Msno--YCQt1Vdv0oGaNeHeLA2k_WfhUy0ebDEJy-S6cwFJNXz-HfTUeYpUVIO3gHtCFc_5F3BKXjnGLU3sHiQ7Il3Ji4WKDw1G4F8rAigX3CHvx_OBM8fLjnyUPTBlcmPpn4FBysV8lgZOIK0im4gfOkZ1SA3xietGVJwNnbXZtDvqGDG8ybdCsqiN7ia0m_brcH_S0J374QcbXoCJjoNB6HLIQB2Jm_F1j98ZawM2eiZ_yL8Y_XcyPaI6s_mBiZGHNin0LEcrbyjqUPKxMjMTHOJ8FP7yCntKtsJsZLXXMmxqb62_IFyXmCinMmWogpINhnRLPkbLRhgKuRboW4-WQUKA-06QPQlAg0QUS0EYy-4_F1rJVw-zXIKF7QMICOmY6ECSmH333UlH8c-R93oE2--E1JGwXkvSkzNFaPTPSFGmrV170scKjOl67veV3zYhuaVnVtPy11w1vEBWd56eWipks_V9156Qo9CC5qXlfnqqtExUvVLW2n6qpZ2qZvuoY1HK3UpjTm22amhY4x4XCumvZSGDmhiUdHhXD4gGPIhMiVDUPWnKa0RtZwoyPFPy6kyeDwi2SmHvD0CJoQyn22ubk_VfwpjF5AExOXCMm9S1akYIbfXVg1bWkqZ2-ZGPOZ79fp3XYmxuOmkYnxSPJ_AAAA__-wgiDD">