- Timestamp:
- 02/20/08 18:55:35 (9 months ago)
- Files:
-
- 1 modified
-
util/build_pugs.pl (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
util/build_pugs.pl
r17057 r19961 47 47 my $thispugs = { @{ $opts->{GEN_PRELUDE} } }->{'--pugs'} or # laugh at me now. 48 48 die "$0: no pugs passed in _+GEN_PRELUDE segment"; 49 49 50 50 if ( grep '--precompile-prelude', @{ $opts->{GEN_PRELUDE} } ) { 51 51 $PugsBuild::Config::Conf->{'precompile_prelude'} … … 57 57 my ($version, $ghc, $ghc_pkg, $ghc_version, $setup, @args) = @{$opts->{GHC}}; 58 58 59 $want_profiling = grep { /^-prof$/ } @args; 60 @args = grep { !/^-prof$/ } @args; 59 $want_profiling = grep { /^-prof$/ } @args; 60 @args = grep { !/^-prof$/ } @args; 61 61 62 62 # Set heap options via environment here; Win32 needs it instead 63 # of setting on GHC flags line. 63 # of setting on GHC flags line. 64 64 my @rts_args; 65 65 foreach my $arg (@args) { … … 171 171 # Judy at this moment wants GNU make. 172 172 $make = 'gmake' unless `$make --version` =~ /GNU/; 173 173 174 174 system("./configure") unless -e "src/Makefile"; 175 175 #system("$make clean"); … … 266 266 glob("$archive_dir/*/*/*.a"), 267 267 ); 268 268 269 269 my @o_files = map { glob("third-party/judy/Judy-1.0.3/src/$_/*.o"), } 270 270 qw( Judy1 JudyHS JudyCommon JudyL JudySL ); … … 272 272 print "Embedding @o_files into @archive_files\n"; 273 273 system($AR_EXE, "-r", $_, @o_files) for @archive_files; 274 274 275 275 if ($Config{ranlib} ne ':') { 276 276 system(split(/ /,$Config{ranlib}), $_) for @archive_files; … … 321 321 # also, remove all .pm.yml files there too. 322 322 unlink($_) for glob(File::Spec->catfile(dirname($ppc_yml), "*.pm.yml")); 323 323 324 324 # finally regenerate the prelude. 325 325 run($^X, qw<util/gen_prelude.pl -v -i src/perl6/Prelude.pm>, … … 354 354 # Add GHC to PATH 355 355 local $ENV{PATH} = dirname($ghc) . $Config{path_sep} . $ENV{PATH}; 356 356 357 357 run($^X, qw<util/version_h.pl>); 358 358 … … 505 505 } 506 506 507 sub write_buildinfo { 507 sub write_buildinfo { 508 508 my ($version, $ghc, $ghc_pkg, $ghc_version, @args) = @_; 509 509 … … 557 557 while (<IN>) { 558 558 # Adjust the dependency line based on Cabal version 559 if ($has_new_cabal) { 560 s/hs-source-dir/hs-source-dirs/; 561 } 562 else { 563 s/pugs-HsSyck -any, //; 564 s/pugs-hsregex -any, //; 565 } 559 s/pugs-HsSyck -any, //; 560 s/pugs-hsregex -any, //; 566 561 s/__OPTIONS__/@args/; 567 562 s/__VERSION__/$version/; … … 585 580 $kind = $1, next if /^_\+(.*)/; # _+SEGMENT start 586 581 undef $kind, next if $_ eq "_-$kind"; # _-SEGMENT end 587 582 588 583 s/^__(.*)__$/PugsBuild::Config->lookup($1)/e; 589 584 590 585 die "don't know where this option belongs: $_" unless $kind; 591 586 push @{ $opts{$kind} }, $_;
