Beispiel #1
0
def generate_win32(env):
    # Import here to avoid importing msvc tool on every platform
    from SCons.Tool.MSCommon.common import get_output, parse_output

    abi = get_abi(env, lang='FORTRAN')

    # Get product dir
    versdict = find_fc_versions(abi)
    vers = sorted(versdict.keys())[::-1]
    pdir = product_dir_fc(versdict[vers[0]])
    batfile = os.path.join(pdir, "bin", "ifortvars.bat")

    out = get_output(batfile, args=_ABI2BATABI[abi])
    d = parse_output(out)
    for k, v in d.items():
        env.PrependENVPath(k, v, delete_existing=True)

    return old_generate(env)
Beispiel #2
0
def generate_win32(env):
    # Import here to avoid importing msvc tool on every platform
    from SCons.Tool.MSCommon.common import get_output, parse_output

    abi = get_abi(env, lang='FORTRAN')

    # Get product dir
    versdict = find_fc_versions(abi)
    vers = sorted(versdict.keys())[::-1]
    pdir = product_dir_fc(versdict[vers[0]])
    batfile = os.path.join(pdir, "bin", "ifortvars.bat")

    out = get_output(batfile, args=_ABI2BATABI[abi])
    d = parse_output(out)
    for k, v in d.items():
        env.PrependENVPath(k, v, delete_existing=True)

    return old_generate(env)
Beispiel #3
0
def generate_linux(env):
    ifort = WhereIs('ifort')
    if not ifort:
        warnings.warn("ifort not found")
    return old_generate(env)
Beispiel #4
0
def generate_linux(env):
    ifort = WhereIs('ifort')
    if not ifort:
        warnings.warn("ifort not found")
    return old_generate(env)