From 5601d5364085b95142254b87f4f656339264be9f Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Thu, 16 Mar 2017 15:02:20 +0000 Subject: [PATCH] Cygwin: Stop using c++wrap for MinGW-compiled utilities Stop using c++wrap for MinGW-compiled utilities. (Partially reverts 96079146) --- winsup/ccwrap | 9 ++------- winsup/utils/Makefile.in | 6 +----- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/winsup/ccwrap b/winsup/ccwrap index 0c6a17020..900fc4ae5 100755 --- a/winsup/ccwrap +++ b/winsup/ccwrap @@ -26,11 +26,6 @@ if ("@ARGV" !~ / -nostdinc/o) { push @compiler, '-I' . $_ for split ' ', $ENV{CCWRAP_HEADERS}; push @compiler, '-isystem', $_ for split ' ', $ENV{CCWRAP_SYSTEM_HEADERS}; my $finding_paths = 0; - my $mingw_compiler = $compiler[0] =~ /mingw/o; - my @dirafters; - for my $d (split ' ', $ENV{CCWRAP_DIRAFTER_HEADERS}) { - push @dirafters, '-isystem', $d if !$mingw_compiler || $d !~ /w32api/o; - } while (<$fd>) { if (/^\*\*\*/o) { print; @@ -40,13 +35,13 @@ if ("@ARGV" !~ / -nostdinc/o) { next; } elsif ($_ eq "End of search list.\n") { last; - } elsif (!@dirafters || !m%w32api|mingw.*/include%o) { + } elsif (!m%w32api%o) { chomp; s/^\s+//; push @compiler, '-isystem', Cwd::abs_path($_); } } - push @compiler, @dirafters; + push @compiler, '-isystem', $_ for split ' ', $ENV{CCWRAP_DIRAFTER_HEADERS}; close $fd; } diff --git a/winsup/utils/Makefile.in b/winsup/utils/Makefile.in index c3297c6c1..889fdaab3 100644 --- a/winsup/utils/Makefile.in +++ b/winsup/utils/Makefile.in @@ -140,12 +140,8 @@ check: testsuite.exe ; $(