Commit 337fdb6
authored
build: raise warning level to 2 for MSVC + WX (KhronosGroup#6290)
SPIRV-Tools consumers like DXC build with MSVC using /W2.
Adding this flag here to the CI can catch those warnings earlier.
Also adding /WX to fail on warnings so those become visible on the CI.
This PR also disables the warning [4251](https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4251?view=msvc-170) which warns about
`std::unique_ptr` being in a class marked as dllexport.1 parent 90156db commit 337fdb6
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1444 | 1444 | | |
1445 | 1445 | | |
1446 | 1446 | | |
1447 | | - | |
| 1447 | + | |
1448 | 1448 | | |
1449 | 1449 | | |
1450 | 1450 | | |
| |||
0 commit comments