cloverleaf3d: overwrite flags (#10830)

This commit is contained in:
Christoph Junghans 2019-03-07 14:08:52 -07:00 committed by GitHub
parent 2f7589adc4
commit c11e745421
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,14 +46,24 @@ def build_targets(self):
if '%gcc' in self.spec: if '%gcc' in self.spec:
targets.append('COMPILER=GNU') targets.append('COMPILER=GNU')
targets.append('FLAGS_GNU=')
targets.append('CFLAGS_GNU=')
elif '%cce' in self.spec: elif '%cce' in self.spec:
targets.append('COMPILER=CRAY') targets.append('COMPILER=CRAY')
targets.append('FLAGS_CRAY=')
targets.append('CFLAGS_CRAY=')
elif '%intel' in self.spec: elif '%intel' in self.spec:
targets.append('COMPILER=INTEL') targets.append('COMPILER=INTEL')
targets.append('FLAGS_INTEL=')
targets.append('CFLAGS_INTEL=')
elif '%pgi' in self.spec: elif '%pgi' in self.spec:
targets.append('COMPILER=PGI') targets.append('COMPILER=PGI')
targets.append('FLAGS_PGI=')
targets.append('CFLAGS_PGI=')
elif '%xl' in self.spec: elif '%xl' in self.spec:
targets.append('COMPILER=XLF') targets.append('COMPILER=XLF')
targets.append('FLAGS_XLF=')
targets.append('CFLAGS_XLF=')
return targets return targets