rocksdb: Don't add -march=native on ARM and gcc 5.x or before. (#12108)
This commit is contained in:
parent
ec29461632
commit
a8b12f0cb6
1 changed files with 7 additions and 0 deletions
|
@ -34,6 +34,13 @@ class Rocksdb(MakefilePackage):
|
||||||
|
|
||||||
phases = ['install']
|
phases = ['install']
|
||||||
|
|
||||||
|
def patch(self):
|
||||||
|
if (self.spec.satisfies('target=aarch64 %gcc@:5.9')):
|
||||||
|
filter_file(
|
||||||
|
'-march=native', '',
|
||||||
|
join_path('build_tools', 'build_detect_platform')
|
||||||
|
)
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
cflags = []
|
cflags = []
|
||||||
ldflags = []
|
ldflags = []
|
||||||
|
|
Loading…
Reference in a new issue