File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -823,10 +823,10 @@ $(BUILDPYTHON): Programs/python.o $(LINK_PYTHON_DEPS) python_exe.o
823
823
$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -municode -o $@ Programs/python.o $(LINK_PYTHON_OBJS) $(LIBS) $(MODLIBS) $(SYSLIBS) python_exe.o
824
824
825
825
$(BUILDVENVLAUNCHER): $(BUILDPYTHON) venvlauncher.o $(srcdir)/PC/launcher.c
826
- $(LINKCC) -D_CONSOLE -DVENV_REDIRECT -DPYTHON_EXECUTABLE_WITH_VERSION="L\"python$(LDVERSION)$(EXE)\"" -municode -static -static-libgcc -static-libstdc++ venvlauncher.o $(srcdir)/PC/launcher.c -o $@ -lversion
826
+ $(LINKCC) -D_CONSOLE -DVENV_REDIRECT -DPYTHON_EXECUTABLE_WITH_VERSION="L\"python$(LDVERSION)$(EXE)\"" -Wno-error=incompatible-pointer-types - municode -static -static-libgcc -static-libstdc++ venvlauncher.o $(srcdir)/PC/launcher.c -o $@ -lversion
827
827
828
828
$(BUILDVENVWLAUNCHER): $(BUILDPYTHONW) venvwlauncher.o $(srcdir)/PC/launcher.c
829
- $(LINKCC) -D_WINDOWS -DVENV_REDIRECT -DPYTHON_EXECUTABLE_WITH_VERSION="L\"pythonw$(LDVERSION)$(EXE)\"" -mwindows -municode -static -static-libgcc -static-libstdc++ venvwlauncher.o $(srcdir)/PC/launcher.c -o $@ -lversion
829
+ $(LINKCC) -D_WINDOWS -DVENV_REDIRECT -DPYTHON_EXECUTABLE_WITH_VERSION="L\"pythonw$(LDVERSION)$(EXE)\"" -Wno-error=incompatible-pointer-types - mwindows -municode -static -static-libgcc -static-libstdc++ venvwlauncher.o $(srcdir)/PC/launcher.c -o $@ -lversion
830
830
831
831
platform: $(PYTHON_FOR_BUILD_DEPS) pybuilddir.txt
832
832
$(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform
Original file line number Diff line number Diff line change @@ -2496,6 +2496,14 @@ case $GCC in
2496
2496
yes)
2497
2497
CFLAGS_NODIST="$CFLAGS_NODIST -std=c11"
2498
2498
2499
+ # GCC 14 and later error out with incompatible-pointer-types
2500
+ # this only occues on mingw
2501
+ case $host in
2502
+ *-*-mingw*)
2503
+ CFLAGS_NODIST="$CFLAGS_NODIST -Wno-error=incompatible-pointer-types"
2504
+ ;;
2505
+ esac
2506
+
2499
2507
PY_CHECK_CC_WARNING([ enable] , [ extra] , [ if we can add -Wextra] )
2500
2508
AS_VAR_IF ( [ ac_cv_enable_extra_warning] , [ yes] ,
2501
2509
[ CFLAGS_NODIST="$CFLAGS_NODIST -Wextra"] )
You can’t perform that action at this time.
0 commit comments