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
get the compiler version
-
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
-
waflib.Tools.ifort.
setup_ifort
(conf, versions, arch=False)[source]¶ Checks installed compilers and targets and returns the first combination from the user’s options, env, or the global supported lists that checks.
Parameters: - versions – A list of tuples of all installed compilers and available targets.
- arch – Whether to return the target architecture.
Returns: the compiler, revision, path, include dirs, library paths, and (optionally) 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
-
waflib.Tools.ifort.
get_compiler_env
(conf, compiler, version, bat_target, bat, select=None)[source]¶ Gets the compiler environment variables as a tuple. Evaluation is lazy by default, which means destructuring can throw
conf.errors.ConfigurationError
If--no-msvc-lazy
orenv.MSVC_LAZY_AUTODETECT
are set, then the values are evaluated at once.Parameters: - conf – configuration context to use to eventually get the version environment
- compiler – compiler name
- version – compiler version number
- bat – path to the batch file to run
- select – optional function to take the realized environment variables tup and map it (e.g. to combine other constant paths)
-
class
waflib.Tools.ifort.
lazytup
(fn, lazy=True, default=None)[source]¶ Bases:
object
A tuple that evaluates its elements from a function when iterated or destructured.
Parameters: - fn – thunk to evaluate the tuple on demand
- lazy – whether to delay evaluation or evaluate in the constructor
- default – optional default for
repr()
if it should not evaluate
-
__doc__
= '\n\tA tuple that evaluates its elements from a function when iterated or destructured.\n\n\t:param fn: thunk to evaluate the tuple on demand\n\t:param lazy: whether to delay evaluation or evaluate in the constructor\n\t:param default: optional default for :py:func:`repr` if it should not evaluate\n\t'¶
-
__module__
= 'waflib.Tools.ifort'¶
-
waflib.Tools.ifort.
get_ifort_versions
(conf, eval_and_save=True)[source]¶ Configuration Method bound to
waflib.Configure.ConfigurationContext
Returns: list of compilers installed Return type: list of string
-
waflib.Tools.ifort.
detect_ifort
(conf, arch=False)[source]¶ Configuration Method bound to
waflib.Configure.ConfigurationContext
-
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
Add 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.
apply_manifest_ifort
(self)[source]¶ Feature: fcprogram, fcshlib, fcprogram_test
-
waflib.Tools.ifort.
exec_command_ifort
(self, *k, **kw)[source]¶ Change the command-line execution for msvc programs. Instead of quoting all the paths and keep using the shell, we can just join the options msvc is interested in
-
waflib.Tools.ifort.
conf
(f)¶ Decorator: attach new configuration functions to
waflib.Build.BuildContext
andwaflib.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: register 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.
after_method
(*k)[source]¶ Decorator: register 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
-
waflib.Tools.ifort.
wrap_class
(class_name)[source]¶ Manifest file processing and @response file workaround for command-line length limits on Windows systems The indicated task class is replaced by a subclass to prevent conflicts in case the class is wrapped more than once
-
waflib.Tools.ifort.
debug
(*k, **kw)[source]¶ Wrap logging.debug, the output is filtered for performance reasons
Features defined in this module: