diff options
author | Lucas Nesi <lucas31nesi@hotmail.com> | 2022-10-03 21:53:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 13:53:59 -0600 |
commit | ffc40a0fdb5f737894b9a97c787c0aec576911e0 (patch) | |
tree | 28fba9ac9e10a1500977a9ddb11678a686f0a9d2 | |
parent | 241b4624bc23aad0f9f0ae5377f6219bf2acbb88 (diff) | |
download | spack-ffc40a0fdb5f737894b9a97c787c0aec576911e0.tar.gz spack-ffc40a0fdb5f737894b9a97c787c0aec576911e0.tar.bz2 spack-ffc40a0fdb5f737894b9a97c787c0aec576911e0.tar.xz spack-ffc40a0fdb5f737894b9a97c787c0aec576911e0.zip |
simgrid: add variant and remove flag (#32797)
* simgrid: remove std c++11 flag
* simgrid: add msg variant
-rw-r--r-- | var/spack/repos/builtin/packages/simgrid/package.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/simgrid/package.py b/var/spack/repos/builtin/packages/simgrid/package.py index eba1e53463..4af3ed91fd 100644 --- a/var/spack/repos/builtin/packages/simgrid/package.py +++ b/var/spack/repos/builtin/packages/simgrid/package.py @@ -118,6 +118,7 @@ class Simgrid(CMakePackage): variant("smpi", default=True, description="SMPI provides MPI") variant("examples", default=False, description="Install examples") variant("mc", default=False, description="Model checker") + variant("msg", default=False, description="Enables the old MSG interface") # does not build correctly with some old compilers -> rely on packages depends_on("boost@:1.69.0", when="@:3.21") @@ -134,7 +135,7 @@ class Simgrid(CMakePackage): if self.spec.satisfies("+smpi"): self.spec.smpicc = join_path(self.prefix.bin, "smpicc") - self.spec.smpicxx = join_path(self.prefix.bin, "smpicxx -std=c++11") + self.spec.smpicxx = join_path(self.prefix.bin, "smpicxx") self.spec.smpifc = join_path(self.prefix.bin, "smpif90") self.spec.smpif77 = join_path(self.prefix.bin, "smpiff") @@ -147,7 +148,8 @@ class Simgrid(CMakePackage): args.append("-Denable_documentation=OFF") if spec.satisfies("+mc"): args.append("-Denable_model-checking=ON") - + if spec.satisfies("+msg"): + args.append("-Denable_msg=ON") return args def install(self, spec, prefix): |