13
13
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
14
# PARTICULAR PURPOSE.
15
15
16
+ UNAME := $(shell uname)
17
+
16
18
@SET_MAKE@
17
19
VPATH = @srcdir@
18
20
am__make_dryrun = \
@@ -1230,6 +1232,7 @@ thread_host_headers = \
1230
1232
${host_builddir}/gthr-posix.h \
1231
1233
${host_builddir}/gthr-default.h
1232
1234
1235
+ ifeq (,$(findstring MSYS,$(UNAME ) ) )
1233
1236
pch1_source = ${glibcxx_srcdir}/include/precompiled/stdc++.h
1234
1237
pch1_output_builddir = ${host_builddir}/stdc++.h.gch
1235
1238
pch1_output_anchor = ${host_builddir}/stdc++.h
@@ -1257,6 +1260,7 @@ pch_output_anchors = \
1257
1260
PCHFLAGS = -x c++-header -nostdinc++ $(CXXFLAGS ) $(VTV_PCH_CXXFLAGS )
1258
1261
@GLIBCXX_BUILD_PCH_FALSE@pch_build =
1259
1262
@GLIBCXX_BUILD_PCH_TRUE@pch_build = ${pch_output}
1263
+ endif
1260
1264
1261
1265
# List of all timestamp files. By keeping only one copy of this list, both
1262
1266
# CLEANFILES and all-local are kept up-to-date.
@@ -1713,6 +1717,7 @@ ${host_builddir}/gthr-default.h: ${toplevel_srcdir}/libgcc/${thread_header} \
1713
1717
-e ' s,^#include "\(.*\)",#include <bits/\1>,g' \
1714
1718
< $< > $@
1715
1719
1720
+ ifeq (,$(findstring MSYS,$(UNAME ) ) )
1716
1721
# Build two precompiled C++ includes, stdc++.h.gch/*.gch
1717
1722
${pch1a_output} : ${allstamped} ${host_builddir}/c++config.h ${pch1_source}
1718
1723
-mkdir -p ${pch1_output_builddir}
@@ -1732,6 +1737,7 @@ ${pch2_output}: ${pch2_source} ${pch1_output}
1732
1737
${pch3_output} : ${pch3_source} ${pch2_output}
1733
1738
-mkdir -p ${pch3_output_builddir}
1734
1739
$(CXX ) $(PCHFLAGS ) $(AM_CPPFLAGS ) -O2 -g ${pch3_source} -o $@
1740
+ endif
1735
1741
1736
1742
# For robustness sake (in light of junk files or in-source
1737
1743
# configuration), copy from the build or source tree to the install
@@ -1859,9 +1865,14 @@ install-headers:
1859
1865
for file in ${ext_host_headers} ; do \
1860
1866
$(INSTALL_DATA ) $$ {file} $(DESTDIR ) ${host_installdir} /../ext; done
1861
1867
1868
+ ifeq (,$(findstring MSYS,$(UNAME ) ) )
1862
1869
# To remove directories.
1863
1870
clean-local :
1864
1871
rm -rf ${pch_output_dirs}
1872
+ else
1873
+ clean-local :
1874
+ echo nada
1875
+ endif
1865
1876
1866
1877
# Stop implicit '.o' make rules from ever stomping on extensionless
1867
1878
# headers, in the improbable case where some foolish, crack-addled
0 commit comments