Skip to content

Commit a8eb359

Browse files
lets try a different method
1 parent ef91d9f commit a8eb359

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

builder/core/toolchain.py

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ def _compiler_version(cc):
3333
m = re.match(r'gcc .+ (\d+)\.', text)
3434
if m:
3535
return 'gcc', m.group(1)
36+
# other gcc
37+
m = re.match(r'gcc .+', text)
38+
if m:
39+
result = util.run_command(cc, '-dumpfullversion -dumpversion', quiet=True)
40+
if result.returncode == 0:
41+
return 'gcc', result.output.split('\n')[0]
3642
return None, None
3743

3844

0 commit comments

Comments
 (0)