[PATCH] More Build patches

Two patches inline...
A small change to Makefile.in so that 'make test' doesn't try to run without an
interpreter or missing assembler libraries.
Index: Makefile.in
===================================================================
RCS file: /home/perlcvs/parrot/Makefile.in,v
retrieving revision 1.24
diff -u -r1.24 Makefile.in
--- Makefile.in 2001/10/14 10:58:19     1.24
+++ Makefile.in 2001/10/15 14:42:12
@@ -106,7 +106,7 @@
        cd t; make clean
        cd docs; make clean
-test:  .test_dummy
+test: $(TEST_PROG) assemble.pl .test_dummy
 .test_dummy:
        $(PERL) t/harness
------------------------
Another simple way to get testparrotsizes to build, without modifying
the existing headers.
RCS file: /home/perlcvs/parrot/Configure.pl,v
retrieving revision 1.28
diff -u -r1.28 Configure.pl
--- Configure.pl        2001/10/14 10:00:23     1.28
+++ Configure.pl        2001/10/15 14:42:57
@@ -188,9 +188,6 @@
 # and the types file
 buildfile("Types_pm", "Parrot");
-# Temporary hack
-system("make include/parrot/vtable.h");
-
 # and now we figure out how big our things are
 print <<"END";
@@ -201,6 +198,8 @@
 {
        my %newc;
+       open NEEDED, ">include/parrot/vtable.h";
+       close NEEDED;
        buildfile("testparrotsizes_c");
        compiletestc("testparrotsizes");
        %newc=eval(runtestc()) or die "Can't run the test program: $!";
@@ -210,6 +209,7 @@
        @c{qw(stacklow intlow numlow strlow pmclow)} = lowbitmask(@c{qw(stackchu
nk iregchunk nregchunk sregchunk pregchunk)});
        unlink('testparrotsizes.c', "test_siz$c{exe}", "test$c{o}");
+       unlink("include/parrot/vtable.h");
 }
 # rewrite the config file with the updated info
0
perl
10/15/2001 3:11:46 PM
📁 perl.perl6.internals
📃 7376 articles.
⭐ 0 followers.

💬 0 Replies
👁️‍🗨️ 958 Views


Reply: