Commit 455babb
committed
[Flang][Windows] Disable PCH on Windows for flangFrontend
This patch fixes PCH staleness errors (fatal error: ... mtime changed) for
flangFrontend during incremental Windows builds.
The error occurs because the automatic CMake re-run during incremental
builds updates the timestamp of the PCH source file (cmake_pch.cxx)
relative to the existing PCH artifact (.pch). This happens even without
direct modifications to the headers listed for precompilation.
Apparently, flangFrontend is the only known LLVM target which uses
target_precompile_headers, and this mechanism fails to reliably force a
PCH rebuild after the CMake re-run in this Windows environment.1 parent 9222607 commit 455babb
1 file changed
+13
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
0 commit comments