forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9d90388
committed
Avoid crash on old Windows with AVX2-capable CPU for VS2013 builds
The Visual Studio 2013 CRT generates invalid code when it makes a 64-bitbuild that is later used on a CPU that supports AVX2 instructions using aversion of Windows before 7SP1/2008R2SP1.Detect this combination, and in those cases turn off the generation ofFMA3, per recommendation from the Visual Studio team.The bug is actually in the CRT shipping with Visual Studio 2013, butMicrosoft have stated they're only fixing it in newer major versions.The fix is therefor conditioned specifically on being built with thisversion of Visual Studio, and not previous or later versions.Author: Christian Ullrich1 parente0694cf commit9d90388
1 file changed
+21
-0
lines changedLines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 |
| |
30 | 35 |
| |
31 | 36 |
| |
| |||
263 | 268 |
| |
264 | 269 |
| |
265 | 270 |
| |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
266 | 287 |
| |
267 | 288 |
| |
268 | 289 |
| |
|
0 commit comments
Comments
(0)