summaryrefslogtreecommitdiff
path: root/ext/Errno
diff options
context:
space:
mode:
authorNicolas R <nicolas@atoomic.org>2020-08-02 22:34:35 -0600
committerℕicolas ℝ <nicolas@atoomic.org>2020-09-14 10:00:15 -0600
commit827cc5257ec01605a34285dd743be5c135f05dd6 (patch)
treeca62bfc81cd10aa2a96f41ab126b61c7e0742567 /ext/Errno
parent5c8d9b4a5836263ca6e73810ada71a71c5f85d84 (diff)
downloadperl-827cc5257ec01605a34285dd743be5c135f05dd6.tar.gz
Fix Win32 errors from Errno
Fix #18025 This is fixing these two errors under windows: "Never use <avx512bwintrin.h> directly; include <immintrin.h> instead." "Never use <avx512vpopcntdqvlintrin.h> directly; include <immintrin.h> instead."
Diffstat (limited to 'ext/Errno')
-rw-r--r--ext/Errno/Errno_pm.PL9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL
index 4f8acfee23..762f3820a5 100644
--- a/ext/Errno/Errno_pm.PL
+++ b/ext/Errno/Errno_pm.PL
@@ -2,7 +2,7 @@ use ExtUtils::MakeMaker;
use Config;
use strict;
-our $VERSION = "1.31";
+our $VERSION = "1.32";
my %err = ();
@@ -18,11 +18,18 @@ if ($Config{gccversion} ne '' && $^O eq 'MSWin32') {
# MinGW complains "warning: #pragma system_header ignored outside include
# file" if the header files are processed individually, so include them
# all in .c file and process that instead.
+ my %seen;
open INCS, '>', 'includes.c' or
die "Cannot open includes.c";
foreach $file (@files) {
next if $file eq 'errno.c';
next unless -f $file;
+ if ( $file eq 'avx512vpopcntdqvlintrin.h' || $file eq 'avx512bwintrin.h' ) {
+ # "Never use <avx512bwintrin.h> directly; include <immintrin.h> instead."
+ # "Never use <avx512vpopcntdqvlintrin.h> directly; include <immintrin.h> instead."
+ $file = 'immintrin.h';
+ }
+ next if ++$seen{$file} > 1;
print INCS qq[#include "$file"\n];
}
close INCS;