diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py index 2bbe8374dd2..d8cc675bd40 100644 --- a/var/spack/repos/builtin/packages/tau/package.py +++ b/var/spack/repos/builtin/packages/tau/package.py @@ -132,7 +132,7 @@ class Tau(Package): default=False, description="Do not add -no-pie while linking with Ubuntu.", ) - + variant("openacc", default=False, description="Activates OpenACC support") depends_on("c", type="build") # generated depends_on("cxx", type="build") # generated depends_on("fortran", type="build") # generated @@ -415,6 +415,9 @@ def install(self, spec, prefix): if "+disable-no-pie" in spec: options.append("-disable-no-pie-on-ubuntu") + if "+openacc" in spec: + options.append("-openacc") + if "+dyninst" in spec: options.append("-dyninst=%s" % spec["dyninst"].prefix) if "+tbb" not in spec: