Build TAMPI with ovni support
By default we build TAMPI with ovni support, as it will be disabled in runtime unless explicitly enabled by the TAMPI_INSTRUMENT=ovni environment variable. Reviewed-by: Aleix Roca Nonell <aleix.rocanonell@bsc.es>
This commit is contained in:
parent
fec4ddf6ab
commit
2a953d811c
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
stdenv
|
stdenv
|
||||||
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, automake
|
, automake
|
||||||
, autoconf
|
, autoconf
|
||||||
@ -9,12 +10,18 @@
|
|||||||
, mpi
|
, mpi
|
||||||
, gcc
|
, gcc
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
|
, enableOvni ? true
|
||||||
|
, ovni ? null
|
||||||
, useGit ? false
|
, useGit ? false
|
||||||
, gitUrl ? "ssh://git@bscpm03.bsc.es/interoperability/tampi.git"
|
, gitUrl ? "ssh://git@bscpm03.bsc.es/interoperability/tampi.git"
|
||||||
, gitBranch ? "master"
|
, gitBranch ? "master"
|
||||||
, gitCommit ? "16f92094ca6da25e2f561c000f5fbc2901944f7b"
|
, gitCommit ? "16f92094ca6da25e2f561c000f5fbc2901944f7b"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
assert enableOvni -> (ovni != null);
|
||||||
|
|
||||||
let
|
let
|
||||||
release = rec {
|
release = rec {
|
||||||
version = "3.0";
|
version = "3.0";
|
||||||
@ -48,7 +55,8 @@ in stdenv.mkDerivation rec {
|
|||||||
boost
|
boost
|
||||||
mpi
|
mpi
|
||||||
gcc
|
gcc
|
||||||
];
|
] ++ optional (enableOvni) ovni;
|
||||||
|
configureFlags = optional (enableOvni) "--with-ovni=${ovni}";
|
||||||
dontDisableStatic = true;
|
dontDisableStatic = true;
|
||||||
hardeningDisable = [ "all" ];
|
hardeningDisable = [ "all" ];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user