Skip to content

Commit b80322d

Browse files
renchapkddnewton
authored andcommitted
Use gmake on FreeBSD
1 parent 12863fd commit b80322d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require_relative "templates/template"
1010
desc "Generate all ERB template based files"
1111
task templates: Prism::Template::TEMPLATES
1212

13-
make = RUBY_PLATFORM.include?("openbsd") ? "gmake" : "make"
13+
make = RUBY_PLATFORM.match?(/openbsd|freebsd/) ? "gmake" : "make"
1414
task(make: :templates) { sh(make) }
1515
task(make_no_debug: :templates) { sh("#{make} all-no-debug") }
1616
task(make_minimal: :templates) { sh("#{make} minimal") }

ext/prism/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def make(env, target)
5050
Dir.chdir(File.expand_path("../..", __dir__)) do
5151
system(
5252
env,
53-
RUBY_PLATFORM.include?("openbsd") ? "gmake" : "make",
53+
RUBY_PLATFORM.match?(/openbsd|freebsd/) ? "gmake" : "make",
5454
target,
5555
exception: true
5656
)

0 commit comments

Comments
 (0)