Make fixupobj work on Windows

This fixes a regression with recent cosmocc toolchain releases that
causes fixupobj to fail with "ifunc ftruncate #1 failed" on Windows
This commit is contained in:
Justine Tunney 2024-03-24 03:14:25 -07:00
parent 9a10adac35
commit 045632a743
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
7 changed files with 38 additions and 15 deletions

View file

@ -61,6 +61,12 @@
#define _X86_CC_AVX512BF16 0
#endif
#ifdef __AVX512FP16__
#define _X86_CC_AVX512FP16 1
#else
#define _X86_CC_AVX512FP16 0
#endif
#ifdef __AVX512VBMI__
#define _X86_CC_AVX512VBMI 1
#else

View file

@ -42,6 +42,7 @@
#define X86_AVX512VL 7H, EBX, 31, 0
#define X86_AVX512_4FMAPS 7H, EDX, 3, 0
#define X86_AVX512_4VNNIW 7H, EDX, 2, _X86_CC_AVX5124VNNIW
#define X86_AVX512_FP16 7H, EDX, 23, _X86_CC_AVX512FP16
#define X86_AVX512_BF16 7H, EAX, 5, _X86_CC_AVX512BF16
#define X86_AVX512_BITALG 7H, ECX, 12, 0
#define X86_AVX512_VBMI2 7H, ECX, 6, 0