Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions easybuild/toolchains/compiler/craype.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ class CrayPECompiler(Compiler):
}

COMPILER_UNIQUE_OPTION_MAP = {
'shared': 'shared',
'dynamic': 'dynamic',
#handled shared and dynamic always via CRAYPE_LINK_TYPE environment variable, dont pass flags to wrapper.
'shared': '',
'dynamic': '',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we just drop dynamic all together then? what's the use?

'static': 'static',
'verbose': 'craype-verbose',
'mpich-mt': 'craympich-mt',
Expand Down Expand Up @@ -117,7 +118,7 @@ def prepare(self, *args, **kwargs):
"""Prepare to use this toolchain; define $CRAYPE_LINK_TYPE if 'dynamic' toolchain option is enabled."""
super(CrayPECompiler, self).prepare(*args, **kwargs)

if self.options['dynamic']:
if self.options['dynamic'] or self.options['shared']:
env.setvar('CRAYPE_LINK_TYPE', 'dynamic')


Expand Down