Skip to content

Commit 15c30d2

Browse files
authored
[TAU package] Perfetto tracing variant (spack#2172)
* [TAU package] Perfetto tracing variant * [@spackbot] updating style on behalf of jordialcaraz --------- Co-authored-by: jordialcaraz <[email protected]>
1 parent 1fe9e1e commit 15c30d2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

repos/spack_repo/builtin/packages/tau/package.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ class Tau(Package):
147147
description="Do not add -no-pie while linking with Ubuntu.",
148148
)
149149
variant("openacc", default=False, description="Activates OpenACC support")
150+
variant(
151+
"perfetto", default=True, description="Activates Perfetto tracing support", when="@2.35:"
152+
)
150153
depends_on("c", type="build") # generated
151154
depends_on("cxx", type="build") # generated
152155
depends_on("fortran", type="build") # generated
@@ -466,6 +469,9 @@ def install(self, spec, prefix):
466469
if "+elf" not in spec:
467470
options.append("-elf=%s" % spec["elfutils"].prefix)
468471

472+
if "+perfetto" in spec:
473+
options.append("-perfetto")
474+
469475
compiler_specific_options = self.set_compiler_options(spec)
470476
options.extend(compiler_specific_options)
471477
configure(*options)

0 commit comments

Comments
 (0)