From: Ilya Zakharevich Date: Mon, 23 Jul 2001 18:20:35 +0000 (-0400) Subject: OPTIMIZE= during perl make X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1167a30e646ca68516b6d6fe00c979246aa8df3a;p=p5sagit%2Fp5-mst-13.2.git OPTIMIZE= during perl make Message-ID: <20010723182035.A14192@math.ohio-state.edu> p4raw-id: //depot/perl@11459 --- diff --git a/Makefile.SH b/Makefile.SH index 2df7ac8..340b736 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -227,9 +227,9 @@ TRNL = '$trnl' ## In the following dollars and backticks do not need the extra backslash. $spitshell >>Makefile <<'!NO!SUBS!' -CCCMD = `sh $(shellflags) cflags $(LIBPERL) $@` +CCCMD = `sh $(shellflags) cflags "optimize='$(OPTIMIZE)'" $(LIBPERL) $@` -CCCMDSRC = `sh $(shellflags) cflags $(LIBPERL) $<` +CCCMDSRC = `sh $(shellflags) cflags "optimize='$(OPTIMIZE)'" $(LIBPERL) $<` private = preplibrary lib/ExtUtils/Miniperl.pm lib/Config.pm @@ -946,7 +946,7 @@ depend: makedepend makedepend: makedepend.SH config.sh sh ./makedepend.SH -.PHONY: test check test_prep _test_prep \ +.PHONY: test check test_prep test_prep_nodll test_prep_pre _test_prep \ test_tty test-tty _test_tty test_notty test-notty _test_notty \ utest ucheck test.utf8 check.utf8 \ test.third check.third utest.third ucheck.third test_notty.third \ @@ -956,25 +956,31 @@ makedepend: makedepend.SH config.sh # Cannot delegate rebuilding of t/perl to make # to allow interlaced test and minitest -_test_prep: $(PERL)$(EXE_EXT) +TESTFILE=TEST + +_test_prep: cd t && (rm -f $(PERL)$(EXE_EXT); $(LNS) ../$(PERL)$(EXE_EXT) $(PERL)$(EXE_EXT)) -test_prep: miniperl ./perl$(EXE_EXT) preplibrary utilities $(dynamic_ext) $(nonxs_ext) $(TEST_PERL_DLL) +# Architecture-neutral stuff: + +test_prep_pre: preplibrary utilities $(nonxs_ext) + +test_prep: test_prep_pre miniperl ./perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL) PERL=./perl $(MAKE) _test_prep _test_tty: - cd t && $(LDLIBPTH) $(PERL_DEBUG) $(PERL) TEST $(TEST_ARGS) /dev/null 2>&1; then \ - $(MAKE) TEST_ARGS=$(TEST_ARGS) _test_tty ; \ + $(MAKE) TEST_ARGS=$(TEST_ARGS) TESTFILE=$(TESTFILE) _test_tty ; \ else \ - $(MAKE) TEST_ARGS=$(TEST_ARGS) _test_notty ; \ + $(MAKE) TEST_ARGS=$(TEST_ARGS) TESTFILE=$(TESTFILE) _test_notty ; \ fi @echo "Ran tests" > t/rantests @@ -998,7 +1004,7 @@ test-notty: test_notty # Targets for Third Degree testing. -test_prep.third: test_prep perl.third +test_prep.third: test_prep perl.third perl.third$(EXE_EXT) PERL=./perl.third $(MAKE) _test_prep test.third check.third: test_prep.third perl.third @@ -1026,6 +1032,11 @@ minitest: miniperl lib/re.pm - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl$(EXE_EXT) perl$(EXE_EXT)) \ && $(LDLIBPTH) ./perl TEST base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t