Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
works with an installed Parrot
Browse files Browse the repository at this point in the history
(parrot segfaults when lua_group is not installed)
  • Loading branch information
fperrad committed Mar 15, 2009
1 parent 01073e4 commit 4268225
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/makefiles/pmc.in
Expand Up @@ -83,7 +83,7 @@ CLEANUPS := \
$(STAGING_DIR)/$(LUA_GROUP)$(LOAD_EXT)


all: staging
all: staging install

generate: $(PMC_SOURCES)
$(PMC2CD) lua.pmc
Expand Down
2 changes: 1 addition & 1 deletion config/makefiles/root.in
Expand Up @@ -29,7 +29,7 @@ MKPATH := @mkpath@
RM_F := @rm_f@
RM_RF := @rm_rf@
#IF(parrot_is_shared and not(cygwin or win32)):export LD_RUN_PATH := @blib_dir@:$(LD_RUN_PATH)
PARROT := @build_dir@/parrot@exe@
PARROT := $(BIN_DIR)/parrot@exe@
PGE := $(PARROT) $(LIB_DIR)/library/PGE/Perl6Grammar.pir
TGE := $(PARROT) $(LIB_DIR)/languages/tge/tgc.pir
PBC_TO_EXE := $(BIN_DIR)/pbc_to_exe@exe@
Expand Down
8 changes: 8 additions & 0 deletions luap.pir
Expand Up @@ -18,9 +18,17 @@ with the standard interface of PCT::HLLCompiler.

=cut

.include 'stat.pasm'

.sub 'main' :anon :main
.param pmc args
$I0 = stat 'lua.pbc', .STAT_EXISTS
unless $I0 goto L1
load_bytecode 'lua.pbc'
goto L2
L1:
load_bytecode 'languages/lua/lua.pbc'
L2:
$P0 = compreg 'lua'
$S0 = "Compiler Lua 5.1 on Parrot Copyright (C) 2005-2009, Parrot Foundation.\n"
$P0.'commandline_banner'($S0)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/luabytecode.pir
Expand Up @@ -503,7 +503,7 @@ PIRCODE
.end


.include 'languages/lua/src/lib/luabytecode_gen.pir'
.include 'src/lib/luabytecode_gen.pir'

# Local Variables:
# mode: pir
Expand Down

0 comments on commit 4268225

Please sign in to comment.