lcals: Fix for aarch64 (#18918)
This commit is contained in:
parent
9288091963
commit
93e989316e
@ -46,6 +46,8 @@ def build_targets(self):
|
|||||||
arch = 'MIC'
|
arch = 'MIC'
|
||||||
elif arch == 'x86_64' or arch == 'x86_32':
|
elif arch == 'x86_64' or arch == 'x86_32':
|
||||||
arch = 'x86'
|
arch = 'x86'
|
||||||
|
elif arch == 'aarch64':
|
||||||
|
arch = 'aarch64'
|
||||||
else:
|
else:
|
||||||
raise InstallError('unknown architecture.')
|
raise InstallError('unknown architecture.')
|
||||||
|
|
||||||
@ -72,6 +74,10 @@ def build_targets(self):
|
|||||||
cxxflags += '-DLCALS_PLATFORM_X86_AVX -DLCALS_COMPILER_GNU '
|
cxxflags += '-DLCALS_PLATFORM_X86_AVX -DLCALS_COMPILER_GNU '
|
||||||
cxx_compile += '-Ofast -mavx -finline-functions'
|
cxx_compile += '-Ofast -mavx -finline-functions'
|
||||||
' -finline-limit=10000 -std=c++11'
|
' -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
|
cxxflags += self.compiler.openmp_flag
|
||||||
|
|
||||||
targets.append('LCALS_ARCH=')
|
targets.append('LCALS_ARCH=')
|
||||||
|
Loading…
Reference in New Issue
Block a user