Skip to content

Commit

Permalink
built programs have to include parrot/api.h
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Mar 18, 2012
1 parent 138dc62 commit 6fac2cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/parrot2/build.pir
@@ -1,4 +1,4 @@
# Copyright (C) 2011, Parrot Foundation.
# Copyright (C) 2011-2012, Parrot Foundation.

.sub 'main' :main
.param pmc args
Expand All @@ -13,7 +13,8 @@
ifh.'open'(infile, 'rb')
outfh = new ['FileHandle']
outfh.'open'(outfile, 'wb')
print outfh, "#include <stdlib.h>\n\n"
print outfh, "#include <stdlib.h>\n"
print outfh, "#include \"parrot/api.h\"\n"
print outfh, "static const unsigned char program_code[] = {"
size = 0

Expand Down

1 comment on commit 6fac2cd

@leto
Copy link
Member

@leto leto commented on 6fac2cd Mar 18, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I think this helped to fix some of the optimized clang problems, but not all.

Please sign in to comment.