|
52 | 52 | #ifdef XSIMD_FORCE_X86_INSTR_SET |
53 | 53 | #define XSIMD_X86_INSTR_SET XSIMD_FORCE_X86_INSTR_SET |
54 | 54 | #define XSIMD_X86_INSTR_SET_AVAILABLE XSIMD_VERSION_NUMBER_AVAILABLE |
55 | | - #ifdef _MSC_VER |
56 | | - #pragma message("Warning: Forcing X86 instruction set") |
57 | | - #else |
58 | | - #warning "Forcing X86 instruction set" |
| 55 | + #ifndef XSIMD_SKIP_ON_WERROR |
| 56 | + #ifdef _MSC_VER |
| 57 | + #pragma message("Warning: Forcing X86 instruction set") |
| 58 | + #else |
| 59 | + #warning "Forcing X86 instruction set" |
| 60 | + #endif |
59 | 61 | #endif |
60 | 62 | #elif defined(XSIMD_FORCE_X86_AMD_INSTR_SET) |
61 | 63 | #define XSIMD_X86_AMD_INSTR_SET XSIMD_FORCE_X86_AMD_INSTR_SET |
62 | 64 | #define XSIMD_X86_AMD_INSTR_SET_AVAILABLE XSIMD_VERSION_NUMBER_AVAILABLE |
63 | | - #ifdef _MSC_VER |
64 | | - #pragma message("Warning: Forcing X86 AMD instruction set") |
65 | | - #else |
66 | | - #warning "Forcing X86 AMD instruction set" |
| 65 | + #ifndef XSIMD_SKIP_ON_WERROR |
| 66 | + #ifdef _MSC_VER |
| 67 | + #pragma message("Warning: Forcing X86 AMD instruction set") |
| 68 | + #else |
| 69 | + #warning "Forcing X86 AMD instruction set" |
| 70 | + #endif |
67 | 71 | #endif |
68 | 72 | #elif defined(XSIMD_FORCE_PPC_INSTR_SET) |
69 | 73 | #define XSIMD_PPC_INSTR_SET XSIMD_FORCE_PPC_INSTR_SET |
70 | 74 | #define XSIMD_PPC_INSTR_SET_AVAILABLE XSIMD_VERSION_NUMBER_AVAILABLE |
71 | | - #ifdef _MSC_VER |
72 | | - #pragma message("Warning: Forcing PPC instruction set") |
73 | | - #else |
74 | | - #warning "Forcing PPC instruction set" |
| 75 | + #ifndef XSIMD_SKIP_ON_WERROR |
| 76 | + #ifdef _MSC_VER |
| 77 | + #pragma message("Warning: Forcing PPC instruction set") |
| 78 | + #else |
| 79 | + #warning "Forcing PPC instruction set" |
| 80 | + #endif |
75 | 81 | #endif |
76 | 82 | #elif defined(XSIMD_FORCE_ARM_INSTR_SET) |
77 | 83 | #define XSIMD_ARM_INSTR_SET XSIMD_FORCE_ARM_INSTR_SET |
78 | 84 | #define XSIMD_ARM_INSTR_SET_AVAILABLE XSIMD_VERSION_NUMBER_AVAILABLE |
79 | | - #ifdef _MSC_VER |
80 | | - #pragma message("Warning: Forcing ARM instruction set") |
81 | | - #else |
82 | | - #warning "Forcing ARM instruction set" |
| 85 | + #ifndef XSIMD_SKIP_ON_WERROR |
| 86 | + #ifdef _MSC_VER |
| 87 | + #pragma message("Warning: Forcing ARM instruction set") |
| 88 | + #else |
| 89 | + #warning "Forcing ARM instruction set" |
| 90 | + #endif |
83 | 91 | #endif |
84 | 92 | #endif |
85 | 93 |
|
|
0 commit comments