mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 08:26:39 +00:00
Merge pull request #11 from bramadams/master
Fixing missing cast for Ruby 2.5.1.
This commit is contained in:
@@ -502,7 +502,7 @@ class LibEmbedder
|
||||
def copy_libs(exe, rel_path = nil)
|
||||
exe_file = File.basename(exe)
|
||||
rel_path ||= Pathname.new(lib_dir).relative_path_from(
|
||||
File.dirname(exe)
|
||||
Pathname.new(File.dirname(exe))
|
||||
).to_s
|
||||
|
||||
`otool -L "#{exe}"`.split("\n")[1..-1].each do |line|
|
||||
@@ -529,7 +529,7 @@ class LibEmbedder
|
||||
|
||||
def copy_extra_libs(extra_libs, exe, rel_path = nil)
|
||||
rel_path ||= Pathname.new(lib_dir).relative_path_from(
|
||||
File.dirname(exe)
|
||||
Pathname.new(File.dirname(exe))
|
||||
).to_s
|
||||
|
||||
extra_libs.each do |lib|
|
||||
@@ -550,7 +550,7 @@ class LibEmbedder
|
||||
end
|
||||
|
||||
def self_ref_libs(exe)
|
||||
rel_path = Pathname.new(lib_dir).relative_path_from(File.dirname(exe)).to_s
|
||||
rel_path = Pathname.new(lib_dir).relative_path_from(Pathname.new(File.dirname(exe))).to_s
|
||||
lib_paths ||= Dir.glob("#{lib_dir}/*")
|
||||
libs = lib_paths.map { |f| File.basename(f) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user