Skip to content

Commit

Permalink
Move Setting java Feature
Browse files Browse the repository at this point in the history
  • Loading branch information
iguessthislldo committed Apr 30, 2024
1 parent 6734aa8 commit 9bf567d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@ my @mpcopts;
push(@mpcopts, @{$opts{'mpcopts'}}) if exists($opts{'mpcopts'});
my @features;
push(@features, @{$opts{'features'}}) if exists($opts{'features'});
push(@features, 'java=1') if $opts{'java'};

$opts{'host'} = perlOS_to_host() unless $opts{'host'};

Expand Down Expand Up @@ -1807,6 +1806,8 @@ sub has_feature {
}

if ($opts{'java'}) {
push(@features, 'java=1');

my $feat = 'java_pre_jpms';
unless (has_feature($feat)) {
my $javac = File::Spec->catfile($opts{'java'}, 'bin', 'javac');
Expand Down

0 comments on commit 9bf567d

Please sign in to comment.