mirror of
https://github.com/rubyjs/libv8
synced 2023-03-27 23:21:48 -04:00
Add Libv8::Make module in ext/
This module provides make discovery, it first tries to find gmake and then falls back to make. This should enable it to work safely and correctly on both BSD and Linux systems.
This commit is contained in:
parent
b981c474f1
commit
f2738ef075
1 changed files with 13 additions and 0 deletions
13
ext/libv8/make.rb
Normal file
13
ext/libv8/make.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
module Libv8
|
||||
module Make
|
||||
module_function
|
||||
|
||||
def make
|
||||
unless defined?(@make)
|
||||
@make = `which gmake`.chomp
|
||||
@make = `which make`.chomp unless $?.success?
|
||||
end
|
||||
@make
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue