Skip to content
Snippets Groups Projects
Unverified Commit 084994db authored by TZ's avatar TZ Committed by GitHub
Browse files

ncl: fix compilation errors with Intel compilers (#17391)

The Intel compilers are more strict and require special command
line options (like -std=c99) to properly compile NCL.
parent f85da868
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,9 @@ def prepare_site_config(self):
c2f_flags.extend(['-lgfortran', '-lm'])
elif self.compiler.name == 'intel':
fc_flags.append('-fp-model precise')
cc_flags.append('-fp-model precise')
cc_flags.append('-fp-model precise'
' -std=c99'
' -D_POSIX_C_SOURCE=2 -D_GNU_SOURCE')
c2f_flags.extend(['-lifcore', '-lifport'])
if self.spec.satisfies('%gcc@10:'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment