summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriarspider <iarspider@gmail.com>2022-05-24 12:19:09 +0200
committerGitHub <noreply@github.com>2022-05-24 12:19:09 +0200
commitc5297523af7387b358511fe15cfb520a6441113c (patch)
tree2f73a6b8868ae7087a544c64509431e8136a5098
parent6883868896be22c30326c925b4ebc502c40d6430 (diff)
downloadspack-c5297523af7387b358511fe15cfb520a6441113c.tar.gz
spack-c5297523af7387b358511fe15cfb520a6441113c.tar.bz2
spack-c5297523af7387b358511fe15cfb520a6441113c.tar.xz
spack-c5297523af7387b358511fe15cfb520a6441113c.zip
vdt: add preload variant (#30030)
-rw-r--r--var/spack/repos/builtin/packages/vdt/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/vdt/package.py b/var/spack/repos/builtin/packages/vdt/package.py
index ead5561260..d9ee3e8177 100644
--- a/var/spack/repos/builtin/packages/vdt/package.py
+++ b/var/spack/repos/builtin/packages/vdt/package.py
@@ -18,6 +18,9 @@ class Vdt(CMakePackage):
version('0.3.7', sha256='713a7e6d76d98f3b2b56b5216e7d5906e30f17865a5c7c889968e9a0b0664949')
version('0.3.6', sha256='fb8f6386f2cd1eeb03db43f2b5c83a172107949bb5e5e8d4dfa603660a9757b0')
+ variant('preload', default=False,
+ description='Create in the library the symbols to preload the library')
+
@property
def build_directory(self):
d = join_path(self.stage.path, 'spack-build')
@@ -40,4 +43,6 @@ class Vdt(CMakePackage):
f.upper(),
f not in disable_features and f in self.spec.target
))
+
+ options.append(self.define_from_variant('PRELOAD'))
return options