Commit 8ec8331d authored by cyrush's avatar cyrush

changed arch formating for case where compiler version is not supported (xlc)

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@5840 18c085ea-50e0-402c-830e-de6fd14e8384
parent c01aaaf7
......@@ -201,13 +201,17 @@ class BuildTest(object):
# use gcc everwhere except AIX
if opsys == "aix":
comp = "xlc"
res = "%s-%s-%s" % (opsys,proc,comp)
# get gcc version
if comp == "gcc":
res = sub_pipe("gcc -v 2>&1")
tok = res[res.find("gcc version")+len("gcc version"):].split()
sub_res = sub_pipe("gcc -v 2>&1")
tok = sub_res[sub_res.find("gcc version")+len("gcc version"):].split()
if len(tok) > 0:
comp_ver = tok[0]
return "%s-%s-%s-%s" % (opsys,proc,comp,comp_ver)
if comp_ver !="":
res += "-%s" % comp_ver;
return res
def main():
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment