Beispiel #1
0
def  _greater_than_gcc(env,amaj,amin,aver):
    gcc = env.expand('%(CC)s')
    vstr = mbuild.get_gcc_version(gcc)
    mbuild.msgb("GCC VERSION", vstr)
    try:
        (vmaj, vmin, vver) = vstr.split('.')
    except:
        return False
    if vmaj > amaj:
        return True
    if vmaj == amaj and vmin > amin:
        return True
    if vmaj == amaj and vmin == amin and vver >= aver:
        return True
    return False
Beispiel #2
0
def _gcc_version_string(env):
    gcc = env.expand('%(CC)s')
    vstr = mbuild.get_gcc_version(gcc)
    return vstr