camx: change compile option for aarch64 (#17653)

This commit is contained in:
t-nojiri 2020-07-24 23:39:40 +09:00 committed by GitHub
parent 08b5b56566
commit 13b3578d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,6 +60,10 @@ def patch(self):
def edit(self, spec, prefix): def edit(self, spec, prefix):
makefile = FileFilter('Makefile') makefile = FileFilter('Makefile')
if spec.target.family == 'aarch64':
makefile.filter('-mcmodel=medium', '-mcmodel=large')
makefile = FileFilter('./MPI/util/Makefile')
makefile.filter('-mcmodel=medium', '-mcmodel=large')
# Support Intel MPI. # Support Intel MPI.
if spec['mpi'].name == 'intel-mpi': if spec['mpi'].name == 'intel-mpi':