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

Remove conditional

parent 6181a786
No related branches found
No related tags found
No related merge requests found
......@@ -108,11 +108,11 @@ class CompilerSelector
when :gnu
GNU_GCC_VERSIONS.reverse_each do |v|
name = "gcc-#{v}"
version = compiler_version(name)
version = versions.non_apple_gcc_version(name)
yield Compiler.new(name, version) if version
end
else
version = compiler_version(compiler)
version = versions.send("#{compiler}_build_version")
yield Compiler.new(compiler, version) if version
end
end
......@@ -121,13 +121,4 @@ class CompilerSelector
def fails_with?(compiler)
failures.any? { |failure| failure === compiler }
end
def compiler_version(name)
case name
when GNU_GCC_REGEXP
versions.non_apple_gcc_version(name)
else
versions.send("#{name}_build_version")
end
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