Commit 1769366
committed
Enable MSVC's conformwat /Zc:preprocessor
Enable MSVC's conformant preprocessor (/Zc:preprocessor, available since
VS 2019 16.5) in both CMake and the setuptools extension, and lock the
behaviour in with a build-time _Static_assert self-test so any future
regression (new compiler, new build system, accidental flag removal)
fails the build immediately on every platform — including the MSVC CI
lane.
Related-to: #289
Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>
(cherry picked from commit f795700)1 parent ccc2c4d commit 1769366
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
213 | 220 | | |
214 | 221 | | |
215 | 222 | | |
| |||
0 commit comments