diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2015-01-07 13:47:32 +0000 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2015-01-07 13:47:32 +0000 |
commit | 8c847e6678942c1b97c54df660ba6fa84ca5e2da (patch) | |
tree | 99f3c2d3d0122e20ad58f6f4258b0a88fbda5d4d /win32 | |
parent | ec064ab75aa5b4dfd43af2f7654b9a0363ae02c4 (diff) | |
download | perl-8c847e6678942c1b97c54df660ba6fa84ca5e2da.tar.gz |
Remove Windows makefile support for building without PerlIO
As noted in #123394, building without PerlIO was all but deprecated in
5.18.0 and is no longer supported by Configure on POSIX systems, so there
is no need for the Windows makefiles to provide support for it either.
Therefore, we can simply enable PerlIO in the canned configuration files
and remove any fiddling with that setting for the real configuration,
which means that miniperl will also now have PerlIO enabled without
needing the recently added change to win32.h.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile | 32 | ||||
-rw-r--r-- | win32/Makefile.ce | 17 | ||||
-rw-r--r-- | win32/config.ce | 2 | ||||
-rw-r--r-- | win32/config.gc | 2 | ||||
-rw-r--r-- | win32/config.vc | 2 | ||||
-rw-r--r-- | win32/config_H.gc | 2 | ||||
-rw-r--r-- | win32/config_H.vc | 2 | ||||
-rw-r--r-- | win32/makefile.mk | 28 | ||||
-rw-r--r-- | win32/win32.h | 1 |
9 files changed, 9 insertions, 79 deletions
diff --git a/win32/Makefile b/win32/Makefile index c5de85e2cf..59f5fee313 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -81,15 +81,6 @@ USE_ITHREADS = define USE_IMP_SYS = define # -# Comment out next assign to disable perl's I/O subsystem and use compiler's -# stdio for IO - depending on your compiler vendor and run time library you may -# then get a number of fails from make test i.e. bugs - complain to them not us ;-). -# You will also be unable to take full advantage of perl5.8's support for multiple -# encodings and may see lower IO performance. You have been warned. -# -USE_PERLIO = define - -# # Comment this out if you don't want to enable large file support for # some reason. Should normally only be changed to maintain compatibility # with an older release of perl. @@ -278,10 +269,6 @@ USE_ITHREADS = undef USE_IMP_SYS = undef !ENDIF -!IF "$(USE_PERLIO)" == "" -USE_PERLIO = undef -!ENDIF - !IF "$(USE_LARGE_FILES)" == "" USE_LARGE_FILES = undef !ENDIF @@ -368,15 +355,7 @@ ARCHITECTURE = ia64 !IF "$(USE_MULTI)" == "define" ARCHNAME = MSWin32-$(ARCHITECTURE)-multi !ELSE -!IF "$(USE_PERLIO)" == "define" ARCHNAME = MSWin32-$(ARCHITECTURE)-perlio -!ELSE -ARCHNAME = MSWin32-$(ARCHITECTURE) -!ENDIF -!ENDIF - -!IF "$(USE_PERLIO)" == "define" -BUILDOPT = $(BUILDOPT) -DUSE_PERLIO !ENDIF !IF "$(USE_ITHREADS)" == "define" @@ -717,17 +696,11 @@ EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c WIN32_SRC = \ .\win32.c \ + .\win32io.c \ .\win32sck.c \ .\win32thread.c \ .\fcrypt.c -# We need this for miniperl build unless we override canned -# config.h #define building mini\* -#!IF "$(USE_PERLIO)" == "define" -WIN32_SRC = $(WIN32_SRC) .\win32io.c -#!ENDIF - - CORE_NOCFG_H = \ ..\av.h \ ..\cop.h \ @@ -830,7 +803,6 @@ CFG_VARS = \ "usethreads=$(USE_ITHREADS)" \ "useithreads=$(USE_ITHREADS)" \ "usemultiplicity=$(USE_MULTI)" \ - "useperlio=$(USE_PERLIO)" \ "use64bitint=$(USE_64_BIT_INT)" \ "uselargefiles=$(USE_LARGE_FILES)" \ "usesitecustomize=$(USE_SITECUST)" \ @@ -970,7 +942,7 @@ config.w32 : $(CFGSH_TMPL) # This target is for when changes to the main config.sh happen. # Edit config.vc, then make perl in a minimal configuration (i.e. with MULTI, -# ITHREADS, IMP_SYS, LARGE_FILES and PERLIO off), then make this target +# ITHREADS, IMP_SYS and LARGE_FILES off), then make this target # to regenerate config_H.vc. regen_config_h: $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh diff --git a/win32/Makefile.ce b/win32/Makefile.ce index a9bbb55bed..64559421f7 100644 --- a/win32/Makefile.ce +++ b/win32/Makefile.ce @@ -37,14 +37,6 @@ CCLIBDIR = $(CCHOME)\lib CECOPY = cecopy # -# Comment out next assign to disable perl's I/O subsystem and use compiler's -# stdio for IO - depending on your compiler vendor and run time library you may -# then get a number of fails from make test i.e. bugs - complain to them not us ;-). -# You will also be unable to take full advantage of perl5.8's support for multiple -# encodings and may see lower IO performance. You have been warned. -USE_PERLIO = define - -# # set this if you wish to use perl's malloc # This will make perl run few times faster # WARNING: Turning this on/off WILL break binary compatibility with extensions @@ -458,10 +450,6 @@ USE_ITHREADS = undef USE_IMP_SYS = undef !ENDIF -!IF "$(USE_PERLIO)" == "" -USE_PERLIO = undef -!ENDIF - !IF "$(USE_PERLCRT)" == "" USE_PERLCRT = undef !ENDIF @@ -482,10 +470,6 @@ BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS !ENDIF -!IF "$(USE_PERLIO)" == "define" -BUILDOPT = $(BUILDOPT) -DUSE_PERLIO -!ENDIF - !IF "$(CROSS_NAME)" == "" CROSS_NAME = $(MACHINE) !ENDIF @@ -766,7 +750,6 @@ CFG_VARS = \ "usethreads=$(USE_ITHREADS)" \ "useithreads=$(USE_ITHREADS)" \ "usemultiplicity=$(USE_MULTI)" \ - "useperlio=$(USE_PERLIO)" \ "use64bitint=undef" \ "uselargefiles=undef" \ "LINK_FLAGS=$(LDLIBPATH) $(LINK_FLAGS) $(SUBSYS)" \ diff --git a/win32/config.ce b/win32/config.ce index f49379fac4..34e4a71d60 100644 --- a/win32/config.ce +++ b/win32/config.ce @@ -1054,7 +1054,7 @@ usemymalloc='n' usenm='false' usensgetexecutablepath='undef' useopcode='true' -useperlio='~USE_PERLIO~' +useperlio='define' useposix='true' usequadmath='undef' usereentrant='undef' diff --git a/win32/config.gc b/win32/config.gc index 32d11d7abb..55931f1ad9 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -1095,7 +1095,7 @@ usemymalloc='n' usenm='false' usensgetexecutablepath='undef' useopcode='true' -useperlio='undef' +useperlio='define' useposix='true' usequadmath='undef' usereentrant='undef' diff --git a/win32/config.vc b/win32/config.vc index db77d08d8b..13d5dd90a3 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -1094,7 +1094,7 @@ usemymalloc='n' usenm='false' usensgetexecutablepath='undef' useopcode='true' -useperlio='undef' +useperlio='define' useposix='true' usequadmath='undef' usereentrant='undef' diff --git a/win32/config_H.gc b/win32/config_H.gc index e70800adae..a549e88920 100644 --- a/win32/config_H.gc +++ b/win32/config_H.gc @@ -4843,7 +4843,7 @@ * used in a fully backward compatible manner. */ #ifndef USE_PERLIO -/*#define USE_PERLIO / **/ +#define USE_PERLIO /**/ #endif /* USE_SOCKS: diff --git a/win32/config_H.vc b/win32/config_H.vc index ba61fe86f5..1253e7502d 100644 --- a/win32/config_H.vc +++ b/win32/config_H.vc @@ -4837,7 +4837,7 @@ * used in a fully backward compatible manner. */ #ifndef USE_PERLIO -/*#define USE_PERLIO / **/ +#define USE_PERLIO /**/ #endif /* USE_SOCKS: diff --git a/win32/makefile.mk b/win32/makefile.mk index 2dcd065007..b30ff86111 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -87,15 +87,6 @@ USE_ITHREADS *= define USE_IMP_SYS *= define # -# Comment out next assign to disable perl's I/O subsystem and use compiler's -# stdio for IO - depending on your compiler vendor and run time library you may -# then get a number of fails from make test i.e. bugs - complain to them not us ;-). -# You will also be unable to take full advantage of perl5.8's support for multiple -# encodings and may see lower IO performance. You have been warned. -# -USE_PERLIO *= define - -# # Comment this out if you don't want to enable large file support for # some reason. Should normally only be changed to maintain compatibility # with an older release of perl. @@ -299,7 +290,6 @@ USE_SITECUST *= undef USE_MULTI *= undef USE_ITHREADS *= undef USE_IMP_SYS *= undef -USE_PERLIO *= undef USE_LARGE_FILES *= undef USE_64_BIT_INT *= undef USE_LONG_DOUBLE *= undef @@ -386,15 +376,7 @@ ARCHITECTURE = ia64 .IF "$(USE_MULTI)" == "define" ARCHNAME = MSWin32-$(ARCHITECTURE)-multi .ELSE -.IF "$(USE_PERLIO)" == "define" ARCHNAME = MSWin32-$(ARCHITECTURE)-perlio -.ELSE -ARCHNAME = MSWin32-$(ARCHITECTURE) -.ENDIF -.ENDIF - -.IF "$(USE_PERLIO)" == "define" -BUILDOPT += -DUSE_PERLIO .ENDIF .IF "$(USE_ITHREADS)" == "define" @@ -854,16 +836,11 @@ EXTRACORE_SRC += ..\perlio.c WIN32_SRC = \ .\win32.c \ + .\win32io.c \ .\win32sck.c \ .\win32thread.c \ .\fcrypt.c -# We need this for miniperl build unless we override canned -# config.h #define building mini\* -#.IF "$(USE_PERLIO)" == "define" -WIN32_SRC += .\win32io.c -#.ENDIF - CORE_NOCFG_H = \ ..\av.h \ ..\cop.h \ @@ -972,7 +949,6 @@ CFG_VARS = \ usethreads=$(USE_ITHREADS) ~ \ useithreads=$(USE_ITHREADS) ~ \ usemultiplicity=$(USE_MULTI) ~ \ - useperlio=$(USE_PERLIO) ~ \ use64bitint=$(USE_64_BIT_INT) ~ \ uselongdouble=$(USE_LONG_DOUBLE) ~ \ uselargefiles=$(USE_LARGE_FILES) ~ \ @@ -1198,7 +1174,7 @@ config.w32 : $(CFGSH_TMPL) # This target is for when changes to the main config.sh happen. # Edit config.gc, then make perl using GCC in a minimal configuration (i.e. -# with MULTI, ITHREADS, IMP_SYS, LARGE_FILES and PERLIO off), then make +# with MULTI, ITHREADS, IMP_SYS and LARGE_FILES off), then make # this target to regenerate config_H.gc. regen_config_h: $(MINIPERL) -I..\lib config_sh.PL --cfgsh-option-file $(mktmp $(CFG_VARS)) \ diff --git a/win32/win32.h b/win32/win32.h index 5b70557791..aa6992e91c 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -25,7 +25,6 @@ # define PERL_DISABLE_PMC /* allow minitest to work */ -# define USE_PERLIO # define PERL_TEXTMODE_SCRIPTS #endif |