You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ATM, an application script (or site-specific config file) needs to define the profiles for all compilers, and preprocessors, e.g. typically something like:
for compiler in (tr[Category.C_COMPILER] +
tr[Category.C_PREPROCESSOR] +
tr[Category.FORTRAN_COMPILER] +
tr[Category.FORTRAN_PREPROCESSOR] +
tr[Category.LINKER]):
compiler.define_profile("base", inherit_from="")
for profile in self.get_valid_profiles():
compiler.define_profile(profile, inherit_from="base")
In hindsight, the ability to define profiling modes per tool seems not to be useful. If a new tools is added that needs profiling flags (like the recent change to the preprocessor, #596), application scripts need to be updated.
I suggest to replace this with using static functions in ProfileFlags. This would simplify the above code to something like:
ProfileFlags.define_profile("base", inherit_from="")
for profile in self.get_valid_profiles():
ProfileFlags.define_profile(profile, inherit_from="base")
and that especially makes it easier if new tools are added that need profile-specific modes.
Activity
#599 Updated documentation.
#599 Updated error message to be more useful.
#599 Fix unhandled warning in tests, removed left-over debug prints.
#599 Added missing test file.
#599 Added missing source file.
#599 Addressed issues raised in review.