diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2017-03-16 18:02:20 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2020-10-18 16:55:11 +0300 |
commit | 5601d5364085b95142254b87f4f656339264be9f (patch) | |
tree | bab0feb36cabe63c5c049d0c2f99df802657cd95 /winsup | |
parent | 7ed952000c2e43f4297fe247f0331e50a14cd688 (diff) |
Cygwin: Stop using c++wrap for MinGW-compiled utilities
Stop using c++wrap for MinGW-compiled utilities.
(Partially reverts 96079146)
Diffstat (limited to 'winsup')
-rwxr-xr-x | winsup/ccwrap | 9 | ||||
-rw-r--r-- | 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 ; $(<D)/$(<F) # the rest of this file contains generic rules # how to compile a MinGW object -${MINGW_OBJS}: override CXX:=${MINGW_CXX} -${MINGW_OBJS}: CCWRAP_HEADERS:=${srcdir} -${MINGW_OBJS}: CCWRAP_SYSTEM_HEADERS:= -# ${MINGW_OBJS}: CCWRAP_DIRAFTER_HEADERS:= $(MINGW_OBJS): %.o: %.cc - c++wrap -c -o $@ ${CXXFLAGS} $(MINGW_CXXFLAGS) $< + ${MINGW_CXX} -c -o $@ ${CXXFLAGS} $(MINGW_CXXFLAGS) $< # how to link a MinGW binary $(MINGW_BINS): %.exe: %.o |