develooper Front page | perl.perl6.internals | Postings from September 2005

[PATCH]: fails outside the build directory

Thread Next
Bob Rogers
September 2, 2005 18:58
[PATCH]: fails outside the build directory
Message ID:
   FWIW, fails outside the build directory with the following
error message:

	can't find file 'classes/default.dump' in path '.', '/usr/src/parrot/build_tools/..', '/usr/src/parrot/build_tools/../classes/' at /usr/src/parrot/build_tools/ line 281.

The patch below seems to fix this.

   This came up because I am trying to build a dynamic PMC thusly:

	. . .
	dynclasses/character.c:		dynclasses/character.pmc
		${PARROT-BUILD-DYNCLASSES} generate dynclasses/character
	dynclasses/character.o:		dynclasses/character.c
		${PARROT-BUILD-DYNCLASSES} compile dynclasses/character
	dynclasses/	dynclasses/character.o
		${PARROT-BUILD-DYNCLASSES} linklibs dynclasses/character

But this only works if the build environment is still lying around.  Is
there a better way to do this?  Is there a plan for building third-party
PMC classes using an installed Parrot?


					-- Bob Rogers

---	(revision 9125)
+++	(working copy)
@@ -638,7 +638,7 @@
         $all{$class} = $res;
-    $all{default} = read_dump($include, "classes/default.pmc")
+    $all{default} = read_dump($include, "default.pmc")
         if not $all{default};
     my $vt = read_dump($include, "vtable.pmc");

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About