File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 33require "extend/ENV/std"
44require "extend/ENV/super"
55
6+ class Array
7+ def to_path_s
8+ map ( &:to_s ) . uniq . select { |s | File . directory? ( s ) } . join ( File ::PATH_SEPARATOR ) . chuzzle
9+ end
10+ end
11+
612def superenv?
713 ARGV . env != "std" && Superenv . bin
814end
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ def determine_pkg_config_libdir
6262 paths << "#{ HOMEBREW_PREFIX } /share/pkgconfig"
6363 paths += homebrew_extra_pkg_config_paths
6464 paths << "/usr/lib/pkgconfig"
65- paths . select { | d | File . directory? d } . join ( File :: PATH_SEPARATOR )
65+ paths . to_path_s
6666 end
6767
6868 # Removes the MAKEFLAGS environment variable, causing make to use a single job.
Original file line number Diff line number Diff line change @@ -330,10 +330,4 @@ def set_cpu_flags(*)
330330 end
331331end
332332
333- class Array
334- def to_path_s
335- map ( &:to_s ) . uniq . select { |s | File . directory? s } . join ( File ::PATH_SEPARATOR ) . chuzzle
336- end
337- end
338-
339333require "extend/os/extend/ENV/super"
You can’t perform that action at this time.
0 commit comments