lcals: Fix for aarch64 (#18918)

This commit is contained in:
t-nojiri 2020-09-25 01:47:21 +09:00 committed by GitHub
parent 9288091963
commit 93e989316e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,6 +46,8 @@ def build_targets(self):
arch = 'MIC'
elif arch == 'x86_64' or arch == 'x86_32':
arch = 'x86'
elif arch == 'aarch64':
arch = 'aarch64'
else:
raise InstallError('unknown architecture.')
@ -72,6 +74,10 @@ def build_targets(self):
cxxflags += '-DLCALS_PLATFORM_X86_AVX -DLCALS_COMPILER_GNU '
cxx_compile += '-Ofast -mavx -finline-functions'
' -finline-limit=10000 -std=c++11'
elif arch == 'aarch64':
cxxflags += '-DLCALS_COMPILER_GNU '
cxx_compile += '-Ofast -finline-functions'
' -finline-limit=10000 -std=c++11'
cxxflags += self.compiler.openmp_flag
targets.append('LCALS_ARCH=')