Use to_path_s for determine_pkg_config_libdir.
This commit is contained in:
parent
0c9047a2b8
commit
3e4fe279b0
@ -3,6 +3,12 @@ require "extend/ENV/shared"
|
||||
require "extend/ENV/std"
|
||||
require "extend/ENV/super"
|
||||
|
||||
class Array
|
||||
def to_path_s
|
||||
map(&:to_s).uniq.select { |s| File.directory?(s) }.join(File::PATH_SEPARATOR).chuzzle
|
||||
end
|
||||
end
|
||||
|
||||
def superenv?
|
||||
ARGV.env != "std" && Superenv.bin
|
||||
end
|
||||
|
||||
@ -62,7 +62,7 @@ module Stdenv
|
||||
paths << "#{HOMEBREW_PREFIX}/share/pkgconfig"
|
||||
paths += homebrew_extra_pkg_config_paths
|
||||
paths << "/usr/lib/pkgconfig"
|
||||
paths.select { |d| File.directory? d }.join(File::PATH_SEPARATOR)
|
||||
paths.to_path_s
|
||||
end
|
||||
|
||||
# Removes the MAKEFLAGS environment variable, causing make to use a single job.
|
||||
|
||||
@ -330,10 +330,4 @@ module Superenv
|
||||
end
|
||||
end
|
||||
|
||||
class Array
|
||||
def to_path_s
|
||||
map(&:to_s).uniq.select { |s| File.directory? s }.join(File::PATH_SEPARATOR).chuzzle
|
||||
end
|
||||
end
|
||||
|
||||
require "extend/os/extend/ENV/super"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user