Mass conversion of setup_(dependent_)?environment (#13924)

* Mass conversion of setup_(dependent_)?environment

* prefix -> self.prefix
This commit is contained in:
Adam J. Stewart
2019-11-29 15:00:44 -06:00
committed by GitHub
parent 92ca639905
commit ab98ef1765
188 changed files with 814 additions and 826 deletions

View File

@@ -81,15 +81,15 @@ def optflags(self):
return flags
def setup_environment(self, build_env, run_env):
def setup_build_environment(self, env):
# Set optimization flags
build_env.set('CFLAGS', self.optflags)
build_env.set('CXXFLAGS', self.optflags)
env.set('CFLAGS', self.optflags)
env.set('CXXFLAGS', self.optflags)
# Change AR to xiar if we compile with Intel and we
# find the executable
if '%intel' in self.spec and which('xiar'):
build_env.set('AR', 'xiar')
env.set('AR', 'xiar')
def configure_args(self):