Skip to content

Commit

Permalink
Fix use of out in systemcompiler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoldeman committed Dec 12, 2023
1 parent 5e71a44 commit 6f69813
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easybuild/easyblocks/generic/systemcompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def extract_compiler_version(compiler_name):
version_regex = re.compile(r'\s([0-9]+(?:\.[0-9]+){1,3})\s', re.M)
if compiler_name == 'gcc':
res = run_shell_cmd("gcc --version")
res = version_regex.search(res.output)
out = res.output
res = version_regex.search(out)
if res is None:
raise EasyBuildError("Could not extract GCC version from %s", out)
compiler_version = res.group(1)
Expand Down

0 comments on commit 6f69813

Please sign in to comment.