lcals: Fix for aarch64 (#18918)
This commit is contained in:
parent
9288091963
commit
93e989316e
1 changed files with 6 additions and 0 deletions
|
@ -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=')
|
||||
|
|
Loading…
Reference in a new issue