Skip to content

Commit

Permalink
Fix for flag handler (sandialabs#566)
Browse files Browse the repository at this point in the history
* Fix for flag handler

* Fix flag handler
  • Loading branch information
ndevelder authored Sep 29, 2023
1 parent 112b031 commit c0d3c17
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions repos/exawind/packages/rosco/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ def setup_run_environment(self, env):
env.set('ROSCO_DISCON_DIR', self.prefix.lib)

def flag_handler(self, name, flags):
spec = self.spec
is_gcc = spec.compiler.name in ["gcc"]
if name == "fflags" and self.compiler.fc.endswith("gfortran"):
flags.extend(["-ffree-line-length-0"])

if is_gcc:
flags.append("-ffree-line-length-0")

return (flags, None, None)
return (None, None, flags)

0 comments on commit c0d3c17

Please sign in to comment.