Skip to content
Snippets Groups Projects
Unverified Commit ea818cac authored by Toyohisa Kameyama's avatar Toyohisa Kameyama Committed by GitHub
Browse files

namd: build on aarch64. (#16639)

parent b9874448
Branches
Tags
No related merge requests found
......@@ -74,6 +74,7 @@ def build_directory(self):
return '{0}-spack'.format(self.arch)
def edit(self, spec, prefix):
m64 = '-m64 ' if not spec.satisfies('arch=aarch64:') else ''
with working_dir('arch'):
with open('{0}.arch'.format(self.build_directory), 'w') as fh:
# this options are take from the default provided
......@@ -81,12 +82,12 @@ def edit(self, spec, prefix):
# https://github.com/UIUC-PPL/charm/pull/2778
if self.spec.satisfies('^charmpp@:6.10.1'):
optims_opts = {
'gcc': '-m64 -O3 -fexpensive-optimizations \
'gcc': m64 + '-O3 -fexpensive-optimizations \
-ffast-math -lpthread',
'intel': '-O2 -ip'}
else:
optims_opts = {
'gcc': '-m64 -O3 -fexpensive-optimizations \
'gcc': m64 + '-O3 -fexpensive-optimizations \
-ffast-math',
'intel': '-O2 -ip'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment