Commit f795700
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>1 parent 7f4eea5 commit f795700
3 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
208 | 215 | | |
209 | 216 | | |
210 | 217 | | |
| |||
0 commit comments