These should be integers
This commit is contained in:
parent
5acaa3374b
commit
13df53166a
@ -39,7 +39,6 @@ module MacOS extend self
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def dev_tools_path
|
def dev_tools_path
|
||||||
@dev_tools_path ||= \
|
@dev_tools_path ||= \
|
||||||
if File.exist? MacOS::CLT::STANDALONE_PKG_PATH and
|
if File.exist? MacOS::CLT::STANDALONE_PKG_PATH and
|
||||||
@ -110,7 +109,7 @@ module MacOS extend self
|
|||||||
def gcc_40_build_version
|
def gcc_40_build_version
|
||||||
@gcc_40_build_version ||=
|
@gcc_40_build_version ||=
|
||||||
if (path = locate("gcc-4.0"))
|
if (path = locate("gcc-4.0"))
|
||||||
%x{#{path} --version}[/build (\d{4,})/, 1]
|
%x{#{path} --version}[/build (\d{4,})/, 1].to_i
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
alias_method :gcc_4_0_build_version, :gcc_40_build_version
|
alias_method :gcc_4_0_build_version, :gcc_40_build_version
|
||||||
@ -142,7 +141,7 @@ module MacOS extend self
|
|||||||
def clang_build_version
|
def clang_build_version
|
||||||
@clang_build_version ||=
|
@clang_build_version ||=
|
||||||
if (path = locate("clang"))
|
if (path = locate("clang"))
|
||||||
%x{#{path} --version}[%r[clang-(\d{2,})], 1]
|
%x{#{path} --version}[%r[clang-(\d{2,})], 1].to_i
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user