Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change dynops build from deprecated ops2c.pl to new NQP-based ops2c
  • Loading branch information
Util committed Jun 23, 2010
1 parent f3d8af8 commit 11cbd4f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Configure.pl
Expand Up @@ -127,6 +127,8 @@ sub read_parrot_config {
sub verify_parrot {
print "Verifying Parrot installation...\n";
my %config = @_;
my $EXE = $config{'exe'};
my $PARROT_BIN_DIR = $config{'bindir'};
my $PARROT_VERSION = $config{'versiondir'};
my $PARROT_LIB_DIR = $config{'libdir'}.$PARROT_VERSION;
my $PARROT_SRC_DIR = $config{'srcdir'}.$PARROT_VERSION;
Expand All @@ -135,7 +137,7 @@ sub verify_parrot {
my @required_files = (
"$PARROT_LIB_DIR/library/PGE/Perl6Grammar.pbc",
"$PARROT_LIB_DIR/library/PCT/HLLCompiler.pbc",
"$PARROT_TOOLS_DIR/build/ops2c.pl",
"$PARROT_BIN_DIR/ops2c".$EXE,
"$PARROT_TOOLS_DIR/build/pmc2c.pl",
"$PARROT_SRC_DIR",
"$PARROT_SRC_DIR/pmc",
Expand Down
2 changes: 1 addition & 1 deletion build/Makefile.in
Expand Up @@ -34,7 +34,7 @@ NQP_EXE = $(PARROT_BIN_DIR)/parrot-nqp$(EXE)
PBC_TO_EXE = $(PARROT_BIN_DIR)/pbc_to_exe$(EXE)
PARROT_TOOLS_DIR = $(PARROT_LIB_DIR)/tools
PARROT_PERL_LIB = $(PARROT_TOOLS_DIR)/lib
OPS2C = $(PERL) $(PARROT_TOOLS_DIR)/build/ops2c.pl
OPS2C = $(PARROT_BIN_DIR)/ops2c$(EXE)
PMC2C = $(PERL) $(PARROT_TOOLS_DIR)/build/pmc2c.pl
PMC2C_INCLUDES = --include src/pmc --include $(PARROT_SRC_DIR) --include $(PARROT_SRC_DIR)/pmc
CINCLUDES = -I$(PARROT_INCLUDE_DIR) -I$(PARROT_INCLUDE_DIR)/pmc
Expand Down
2 changes: 1 addition & 1 deletion docs/compiler_overview.pod
Expand Up @@ -241,7 +241,7 @@ definitions.

The dynops source is in F<ops/perl6.ops>, which looks like C, apart from
some Perlish syntactic sugar.
A F<../parrot_install/lib/x.y.z-devel/tools/build/ops2c.pl> desugars
A F<../parrot_install/bin/ops2c> desugars
that to F<build/perl6.c> which your C compiler turns into a library.

For this overview, the opcode names and parameters might give a vague
Expand Down

0 comments on commit 11cbd4f

Please sign in to comment.