Skip to content

Commit 99767f0

Browse files
committed
PGI: Set -tp=x64 if optarch is set to False.
1 parent 3640b03 commit 99767f0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • easybuild/toolchains/compiler

easybuild/toolchains/compiler/pgi.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,8 @@ class Pgi(Compiler):
8585
'dynamic':'-Bdynamic',
8686
}
8787

88+
def _set_compiler_flags(self):
89+
"""Set -tp=x64 if optarch is set to False."""
90+
if not self.options.get('optarch', False):
91+
self.variables.nextend('OPTFLAGS', ['tp=x64'])
92+
super(Pgi, self)._set_compiler_flags()

0 commit comments

Comments
 (0)