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

Use a case statement

parent dfea2b60
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,9 @@ module SharedEnvExtension
def compiler
@compiler ||= if (cc = ARGV.cc)
COMPILER_SYMBOL_MAP.fetch(cc) do |other|
if other =~ GNU_GCC_REGEXP then other
case other
when GNU_GCC_REGEXP
other
else
raise "Invalid value for --cc: #{other}"
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