modylas: Add flag to use preprocessor when building with Fujitsu compiler. (#16598)

This commit is contained in:
Tomoki, Karatsu 2020-05-13 01:34:28 +09:00 committed by GitHub
parent 8b06bd7198
commit 278f8eb7fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,6 +40,8 @@ def setup_build_environment(self, env):
fflags = ['-O3', self.compiler.openmp_flag]
if self.spec.satisfies('%gcc'):
fflags.append('-cpp')
elif self.spec.satisfies('%fj'):
fflags.append('-Cpp')
env.set('FCFLAGS', ' '.join(fflags))
def configure_args(self):