# New Ticket Created by Leopold Toetsch # Please include the string: [perl #22855] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=22855 >
Attached is a minimum patch to build imcc as the parrot executable - renames orig parrot to test_main - renames imcc to parrot As the current build process needs rework anyway, I kept it to the bare minimum. Please give it a try on other platforms, especially non Linux. $ make test # full speed ;-) $ parrot -j examples/assembly/mops.pasm # run PASM/PIR Thanks, leo -- attachment 1 ------------------------------------------------------ url: http://rt.perl.org/rt2/attach/60060/44488/3e05c3/imcc_is_parrot.patch
--- parrot/config/gen/makefiles/imcc.in Fri May 30 21:41:17 2003 +++ parrot-leo/config/gen/makefiles/imcc.in Mon Jun 30 13:41:48 2003 @@ -48,7 +48,7 @@ all : imcc${exe} -../../$(PARROTLIB): ../../parrot$(EXE) +../../$(PARROTLIB): cd ..${slash}.. && $(MAKE) $(PARROTLIB) && cd languages${slash}imcc # The .flag files are needed because we are keeping some derived files in CVS, --- parrot/config/gen/makefiles/root.in Tue Jun 24 22:00:04 2003 +++ parrot-leo/config/gen/makefiles/root.in Mon Jun 30 13:45:49 2003 @@ -194,13 +194,14 @@ .c$(O) : $(CC) $(CFLAGS) ${cc_o_out}$@ -c $< -all : $(TEST_PROG) docs +all : $(TEST_PROG) docs $(IMCC_PROG) mops : examples/assembly/mops${exe} examples/mops/mops${exe} $(TEST_PROG) : test_main$(O) $(GEN_HEADERS) $(LIBPARROT) lib/Parrot/OpLib/core.pm $(LINK) ${ld_out}$(TEST_PROG) $(LINKFLAGS) test_main$(O) $(LIBPARROT) $(C_LIBS) + $(PERL) -MExtUtils::Command -e mv $(TEST_PROG) test_main$(EXE) lib_deps_object : $(O_FILES) $(PERL) tools/dev/lib_deps.pl object $(O_FILES) @@ -518,6 +519,10 @@ languages/imcc/*.l \ languages/imcc/*.o cd languages${slash}imcc && $(MAKE) && cd ..${slash}.. + $(PERL) -MExtUtils::Command -e mv $(IMCC_PROG) $(TEST_PROG) + cd languages${slash}imcc && $(MAKE) && cd ..${slash}.. + # this doesn't work here + #$(PERL) -MExtUtils::Command -e chmod 0755 $(TEST_PROG) ############################################################################### --- parrot/lib/Parrot/Test.pm Sun Jun 1 11:10:26 2003 +++ parrot-leo/lib/Parrot/Test.pm Mon Jun 30 13:39:56 2003 @@ -95,6 +95,7 @@ $can_skip_compile = 0 if (not -e $by_f); } } + $ENV{IMCC} = 'parrot' . $PConfig{exe}; if (!$can_skip_compile) { open ASSEMBLY, "> $as_f" or die "Unable to open '$as_f'";