Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[build] add --ignore-parrot-rev option to Configure.pl which allows y…
…ou to build parrot branches which are behind build/PARROT_REVISION
  • Loading branch information
moritz committed May 16, 2011
1 parent ec5cdf5 commit ca8731c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Configure.pl
Expand Up @@ -13,7 +13,8 @@
my %options;
my $rakudo_configure_options = join(' ', map { "\"$_\"" } @ARGV);
GetOptions(\%options, 'help!', 'parrot-config=s', 'makefile-timing!',
'gen-parrot!', 'gen-parrot-prefix=s', 'gen-parrot-option=s@');
'gen-parrot!', 'gen-parrot-prefix=s', 'gen-parrot-option=s@',
'ignore-parrot-rev');

# Print help if it's requested
if ($options{'help'}) {
Expand Down Expand Up @@ -66,7 +67,7 @@
if ($config{git_describe}) {
# a parrot built from git
if (compare_revs($git_describe, $config{'git_describe'}) > 0) {
$parrot_errors .= "Parrot revision $git_describe required (currently $config{'git_describe'})\n";
$parrot_errors .= "Parrot revision $git_describe required (currently $config{'git_describe'})\n" unless $options{'ignore-parrot-rev'};
}
}
else {
Expand Down Expand Up @@ -120,6 +121,14 @@ END
official test suite and run its tests.
END
if ($options{'ignore-parrot-rev'}) {
print <<"END";
You are using the --ignore-parrot-rev option, which disables sanity checks.
Please don't report build or test failures from this rakudo build to rakudobug.
END

}
exit 0;

}
Expand Down Expand Up @@ -221,6 +230,8 @@ sub print_help {
Use config information from parrot_config executable
Experimental developer's options:
--makefile-timing Insert 'time' command all over in the Makefile
--ignore-parrot-rev Ignore minimum required parrot revison.
Please only use this option for development purposes.
END

return;
Expand Down

0 comments on commit ca8731c

Please sign in to comment.