Skip to content
Snippets Groups Projects
Commit 13df5316 authored by Jack Nagel's avatar Jack Nagel
Browse files

These should be integers

parent 5acaa337
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,6 @@ module MacOS extend self
end
end
def dev_tools_path
@dev_tools_path ||= \
if File.exist? MacOS::CLT::STANDALONE_PKG_PATH and
......@@ -110,7 +109,7 @@ module MacOS extend self
def gcc_40_build_version
@gcc_40_build_version ||=
if (path = locate("gcc-4.0"))
%x{#{path} --version}[/build (\d{4,})/, 1]
%x{#{path} --version}[/build (\d{4,})/, 1].to_i
end
end
alias_method :gcc_4_0_build_version, :gcc_40_build_version
......@@ -142,7 +141,7 @@ module MacOS extend self
def clang_build_version
@clang_build_version ||=
if (path = locate("clang"))
%x{#{path} --version}[%r[clang-(\d{2,})], 1]
%x{#{path} --version}[%r[clang-(\d{2,})], 1].to_i
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment