openblas: add ilp64 option (#5289)

This commit is contained in:
Denis Davydov 2017-09-12 08:40:28 +02:00 committed by Massimiliano Culpo
parent b413f37b3e
commit 5c24370512

View file

@ -47,6 +47,7 @@ class Openblas(MakefilePackage):
default=True,
description='Build shared libraries as well as static libs.'
)
variant('ilp64', default=False, description='64 bit integers')
variant('openmp', default=False, description="Enable OpenMP support.")
variant('pic', default=True, description='Build position independent code')
@ -129,6 +130,10 @@ def make_defs(self):
if '+openmp' in self.spec:
make_defs += ['USE_OPENMP=1']
# 64bit ints
if '+ilp64' in self.spec:
make_defs += ['INTERFACE64=1']
return make_defs
@property