Changeset 2656
- Timestamp:
- 05/03/05 20:15:53 (4 years ago)
- svk:copy_cache_prev:
- 4152
- Files:
-
- 3 modified
-
Makefile.PL (modified) (5 diffs)
-
src/Pugs/Embed.hs (modified) (1 diff)
-
src/Pugs/Prim.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Makefile.PL
r2629 r2656 3 3 use warnings; 4 4 use Config; 5 use Cwd qw(abs_path); 5 6 use File::Spec; 6 7 use lib 'lib'; … … 86 87 . 87 88 } 88 89 89 90 90 my $ghc_output = "-o pugs$Config{_exe} src/Main.hs"; … … 103 103 $ghc_output .= " $pcre @syck @pge $unicode"; 104 104 105 my $embed_flags; 106 if ($ENV{PUGS_EMBED} and $ENV{PUGS_EMBED} =~ /\bparrot\b/i) { 107 my $base = $ENV{PARROT_PATH}; 108 if (!$base and -d "../parrot") { 109 $base = abs_path('../parrot/'); 110 } 111 (-d $base and -e "$base/parrot-config.imc") 112 or die "*** Please set \$ENV{PARROT_PATH} to the base path with a built parrot tree.\n"; 113 $embed_flags .= " -I$base/include -L$base/blib/lib -DPUGS_HAVE_PARROT=1 -L/usr/local/lib"; 114 $ghc_output .= " -lparrot -licuuc -licudata " 115 } 116 105 117 my $config = get_pugs_config(); 106 118 my $is_win32 = ($^O =~ /MSWin|mingw|cygwin/i); … … 159 171 160 172 optimized :: src/Pugs/Config.hs @srcfiles $version_h @prereqs 161 $ghc $threaded -O --make $ghc_flags $ ghc_output173 $ghc $threaded -O --make $ghc_flags $embed_flags $ghc_output 162 174 163 175 unoptimised :: optimized 164 176 165 177 unoptimized :: src/Pugs/Config.hs @srcfiles $version_h @prereqs 166 $ghc $threaded -O0 --make $ghc_flags $ ghc_output178 $ghc $threaded -O0 --make $ghc_flags $embed_flags $ghc_output 167 179 168 180 $pugs : src/Pugs/Config.hs @srcfiles $version_h @prereqs 169 $ghc $threaded -O --make $ghc_flags $ ghc_output181 $ghc $threaded -O --make $ghc_flags $embed_flags $ghc_output 170 182 171 183 smoke : $pugs util/run-smoke.pl … … 173 185 174 186 ghci :: 175 $ghc --interactive $ghc_flags $ ghc_output187 $ghc --interactive $ghc_flags $embed_flags $ghc_output 176 188 177 189 tags : @srcfiles -
src/Pugs/Embed.hs
r2564 r2656 12 12 module Pugs.Embed ( 13 13 module Pugs.Embed.Perl5, 14 module Pugs.Embed.Haskell 15 -- module Pugs.Embed.Parrot16 -- module Pugs.Embed.Ponie 14 module Pugs.Embed.Haskell, 15 module Pugs.Embed.Parrot, 16 -- module Pugs.Embed.Ponie, 17 17 ) where 18 18 import Pugs.Embed.Perl5 19 19 import Pugs.Embed.Haskell 20 --import Pugs.Embed.Parrot20 import Pugs.Embed.Parrot 21 21 -- import Pugs.Embed.Ponie 22 22 -
src/Pugs/Prim.hs
r2645 r2656 182 182 externRequire "Haskell" name 183 183 return $ VBool True 184 op1 "require_parrot" = \v -> do 185 name <- fromVal v 186 liftIO $ evalParrot name 187 return $ VBool True 184 188 op1 "require" = \v -> do 185 189 file <- fromVal v … … 1449 1453 \\n Any pre require (?Str=$_)\ 1450 1454 \\n Any pre require_haskell (Str)\ 1455 \\n Any pre require_parrot (Str)\ 1451 1456 \\n Any pre last (?Int=1)\ 1452 1457 \\n Any pre next (?Int=1)\
