ifort

waflib.Tools.ifort.find_ifort(conf)[source]

Configuration Method bound to waflib.Configure.ConfigurationContext

waflib.Tools.ifort.ifort_modifier_win32(self)[source]

Configuration Method bound to waflib.Configure.ConfigurationContext

waflib.Tools.ifort.ifort_modifier_darwin(conf)[source]

Configuration Method bound to waflib.Configure.ConfigurationContext

waflib.Tools.ifort.ifort_modifier_platform(conf)[source]

Configuration Method bound to waflib.Configure.ConfigurationContext

waflib.Tools.ifort.get_ifort_version(conf, fc)[source]

Configuration Method bound to waflib.Configure.ConfigurationContext

Detects the compiler version and sets conf.env.FC_VERSION

waflib.Tools.ifort.configure(conf)[source]

Detects the Intel Fortran compilers

waflib.Tools.ifort.all_ifort_platforms = [('intel64', 'amd64'), ('em64t', 'amd64'), ('ia32', 'x86'), ('Itanium', 'ia64')]

List of icl platforms

waflib.Tools.ifort.gather_ifort_versions(conf, versions)[source]

Configuration Method bound to waflib.Configure.ConfigurationContext

List compiler versions by looking up registry keys

waflib.Tools.ifort.setup_ifort(conf, versiondict)[source]

Configuration Method bound to waflib.Configure.ConfigurationContext

Checks installed compilers and targets and returns the first combination from the user’s options, env, or the global supported lists that checks.

Parameters:versiondict (dict(string -> dict(string -> target_compiler)) – dict(platform -> dict(architecture -> configuration))
Returns:the compiler, revision, path, include dirs, library paths and target architecture
Return type:tuple of strings
waflib.Tools.ifort.get_ifort_version_win32(conf, compiler, version, target, vcvars)[source]

Configuration Method bound to waflib.Configure.ConfigurationContext

class waflib.Tools.ifort.target_compiler(ctx, compiler, cpu, version, bat_target, bat, callback=None)[source]

Bases: object

Wraps a compiler configuration; call evaluate() to determine whether the configuration is usable.

__init__(ctx, compiler, cpu, version, bat_target, bat, callback=None)[source]
Parameters:
  • ctx – configuration context to use to eventually get the version environment
  • compiler – compiler name
  • cpu – target cpu
  • version – compiler version number
  • bat_target

    ?

  • bat – path to the batch file to run
  • callback – optional function to take the realized environment variables tup and map it (e.g. to combine other constant paths)
waflib.Tools.ifort.detect_ifort(self)[source]

Configuration Method bound to waflib.Configure.ConfigurationContext

waflib.Tools.ifort.get_ifort_versions(self, eval_and_save=True)[source]

Configuration Method bound to waflib.Configure.ConfigurationContext

Returns:platforms to compiler configurations
Return type:dict
waflib.Tools.ifort.find_ifort_win32(conf)[source]

Configuration Method bound to waflib.Configure.ConfigurationContext

waflib.Tools.ifort.apply_flags_ifort(self)[source]

Task generator method

Adds additional flags implied by msvc, such as subsystems and pdb files:

def build(bld):
        bld.stlib(source='main.c', target='bar', subsystem='gruik')
Feature:fc
waflib.Tools.ifort.conf(f)

Decorator: attach new configuration functions to waflib.Build.BuildContext and waflib.Configure.ConfigurationContext. The methods bound will accept a parameter named ‘mandatory’ to disable the configuration errors:

def configure(conf):
        conf.find_program('abc', mandatory=False)
Parameters:f (function) – method to bind
waflib.Tools.ifort.feature(*k)

Decorator that registers a task generator method that will be executed when the object attribute feature contains the corresponding key(s):

from waflib.Task import feature
@feature('myfeature')
def myfunction(self):
        print('that is my feature!')
def build(bld):
        bld(features='myfeature')
Parameters:k (list of string) – feature names
waflib.Tools.ifort.apply_manifest_ifort(self)[source]

Task generator method

Enables manifest embedding in Fortran DLLs when using ifort on Windows See: http://msdn2.microsoft.com/en-us/library/ms235542(VS.80).aspx

Feature:fcprogram, fcshlib, fcprogram_test
waflib.Tools.ifort.after_method(*k)[source]

Decorator that registers a task generator method which will be executed after the functions of given name(s):

from waflib.TaskGen import feature, after
@feature('myfeature')
@after_method('fun2')
def fun1(self):
        print('feature 1!')
@feature('myfeature')
def fun2(self):
        print('feature 2!')
def build(bld):
        bld(features='myfeature')
Parameters:k (list of string) – method names

Features defined in this module: