Fix TypeError with gcc compiler in deprecated MacOS
In some deprecated MacOS, e.g.10.13 High Sierra, when compiling formulae with --cc=gcc-XX, homebrew will raise "TypeError: Return value: Expected type Symbol, got type String with value". Convert "other" string to symbol to solve this.
This commit is contained in:
parent
2fd99da94c
commit
2809678f77
@ -348,7 +348,7 @@ module SharedEnvExtension
|
||||
COMPILER_SYMBOL_MAP.fetch(value) do |other|
|
||||
case other
|
||||
when GNU_GCC_REGEXP
|
||||
other
|
||||
other.to_sym
|
||||
else
|
||||
raise "Invalid value for #{source}: #{other}"
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user