nanoflann: Don't add -mtune=native on ARM and gcc 5.x (#12093)

This commit is contained in:
Toyohisa Kameyama 2019-07-24 06:47:28 +09:00 committed by Adam J. Stewart
parent 2b35ad7b22
commit 39139b9db8

View file

@ -15,6 +15,10 @@ class Nanoflann(CMakePackage):
version('1.2.3', '92a0f44a631c41aa06f9716c51dcdb11')
def patch(self):
if self.spec.satisfies('target=aarch64 %gcc@:5.9'):
filter_file('-mtune=native', '', 'CMakeLists.txt')
def cmake_args(self):
args = ['-DBUILD_SHARED_LIBS=ON']
return args