Lines 535-545
def getgccversion():
Link Here
|
535 |
"!!! other terminals also.\n" |
535 |
"!!! other terminals also.\n" |
536 |
) |
536 |
) |
537 |
|
537 |
|
538 |
mystatus, myoutput = commands.getstatusoutput("gcc-config -c") |
|
|
539 |
if mystatus == os.EX_OK and len(myoutput.split("-")) > 0: |
540 |
return gcc_ver_prefix + myoutput.split("-")[-1] |
541 |
|
542 |
mystatus, myoutput = commands.getstatusoutput("eselect compiler show") |
538 |
mystatus, myoutput = commands.getstatusoutput("eselect compiler show") |
|
|
539 |
if mystatus == os.EX_OK and len(myoutput.split("/")) > 0: |
540 |
return gcc_ver_prefix + myoutput.split("/")[0].split("-")[-1] + "/" + myoutput.split("/")[-1] |
541 |
|
542 |
mystatus, myoutput = commands.getstatusoutput("gcc-config -c") |
543 |
if mystatus == os.EX_OK and len(myoutput.split("-")) > 0: |
543 |
if mystatus == os.EX_OK and len(myoutput.split("-")) > 0: |
544 |
return gcc_ver_prefix + myoutput.split("-")[-1] |
544 |
return gcc_ver_prefix + myoutput.split("-")[-1] |
545 |
|
545 |
|