MacSystem now just wraps MacOS
This commit is contained in:
parent
397ccc9968
commit
8a14b91d01
@ -1,10 +1,8 @@
|
|||||||
# new code because I don't really trust the Xcode code now having researched it more
|
module MacSystem
|
||||||
module MacSystem extend self
|
extend self
|
||||||
|
|
||||||
def xcode_clt_installed?
|
def xcode_clt_installed?
|
||||||
# TODO: handle 10.9 CLT which has headers under:
|
MacOS::CLT.installed?
|
||||||
# /Library/Developer/CommandLineTools/usr/include
|
|
||||||
File.executable? "/usr/bin/clang" and File.executable? "/usr/bin/lldb" and
|
|
||||||
File.executable? "/usr/bin/make" and File.directory? "/usr/include"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def xcode43_without_clt?
|
def xcode43_without_clt?
|
||||||
@ -12,7 +10,6 @@ module MacSystem extend self
|
|||||||
end
|
end
|
||||||
|
|
||||||
def x11_prefix
|
def x11_prefix
|
||||||
@x11_prefix ||= %W[/opt/X11 /usr/X11
|
MacOS::X11.prefix
|
||||||
#{MacOS.sdk_path}/usr/X11].find{|path| File.directory? "#{path}/include" }
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user