extend/ENV/shared: use try.
`version_suffix` exists (or doesn't) depending on the GCC formula being available and not loaded from the API.
This commit is contained in:
parent
b4510401bd
commit
612c27cd2d
@ -289,7 +289,7 @@ module SharedEnvExtension
|
|||||||
gcc_version_name = "gcc@#{version}"
|
gcc_version_name = "gcc@#{version}"
|
||||||
|
|
||||||
gcc = Formulary.factory("gcc")
|
gcc = Formulary.factory("gcc")
|
||||||
if gcc.version_suffix == version
|
if gcc.try(:version_suffix) == version
|
||||||
gcc
|
gcc
|
||||||
else
|
else
|
||||||
Formulary.factory(gcc_version_name)
|
Formulary.factory(gcc_version_name)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user