diff options
author | jalcaraz <jordi_alc@hotmail.com> | 2023-10-31 12:28:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 13:28:16 -0600 |
commit | f9c0a15ba058e63a6dbcc9674184438687313464 (patch) | |
tree | 156b5467ba0beaf105287dc216ff8a69bf5fb859 /var | |
parent | 14cb923dd8d9c60425d98c1ac3b98417d956951b (diff) | |
download | spack-f9c0a15ba058e63a6dbcc9674184438687313464.tar.gz spack-f9c0a15ba058e63a6dbcc9674184438687313464.tar.bz2 spack-f9c0a15ba058e63a6dbcc9674184438687313464.tar.xz spack-f9c0a15ba058e63a6dbcc9674184438687313464.zip |
TAU: Added dyninst variant (#40790)
* Added dyninst variant
* Added dyninst variant and fixed some issues
* Update package.py
* Removed whitespace
* Update package.py
* Update package.py
* Fixed conflicting version
---------
Co-authored-by: eugeneswalker <38933153+eugeneswalker@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/tau/package.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py index b61ab5753c..9d5252cad2 100644 --- a/var/spack/repos/builtin/packages/tau/package.py +++ b/var/spack/repos/builtin/packages/tau/package.py @@ -99,6 +99,7 @@ class Tau(Package): variant( "x86_64", default=False, description="Force build for x86 Linux instead of auto-detect" ) + variant("dyninst", default=False, description="Activates dyninst support") depends_on("cmake@3.14:", type="build", when="%clang") depends_on("zlib-api", type="link") @@ -128,6 +129,7 @@ class Tau(Package): depends_on("rocm-smi-lib", when="@2.32.1: +rocm") depends_on("java", type="run") # for paraprof depends_on("oneapi-level-zero", when="+level_zero") + depends_on("dyninst@12.3.0:", when="+dyninst") # Elf only required from 2.28.1 on conflicts("+elf", when="@:2.28.0") @@ -136,6 +138,7 @@ class Tau(Package): # ADIOS2, SQLite only available from 2.29.1 on conflicts("+adios2", when="@:2.29.1") conflicts("+sqlite", when="@:2.29.1") + conflicts("+dyninst", when="@:2.32.1") patch("unwind.patch", when="@2.29.0") @@ -337,6 +340,15 @@ class Tau(Package): break options.append("-pythonlib=%s" % lib_path) + if "+dyninst" in spec: + options.append("-dyninst=%s" % spec["dyninst"].prefix) + if "+tbb" not in spec: + options.append("-tbb=%s" % spec["intel-tbb"].prefix) + if "+boost" not in spec: + options.append("-boost=%s" % spec["boost"].prefix) + if "+elf" not in spec: + options.append("-elf=%s" % spec["elfutils"].prefix) + compiler_specific_options = self.set_compiler_options(spec) options.extend(compiler_specific_options) configure(*options) |