Set NOSV_HOME for clang wrapped with nodes

This is needed since nosv must appear as a 1rst level dependency on the
final executable. Clang will add the dependency as long as it knows
where to find nosv (and nodes is used).

Reviewed-By: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
This commit is contained in:
Aleix Roca Nonell 2023-10-31 10:36:17 +01:00 committed by Rodrigo Arias Mallo
parent 9f245946d7
commit ebeb2ff549
2 changed files with 7 additions and 0 deletions

View File

@ -46,5 +46,8 @@ in wrapCCWith {
'' + lib.optionalString (ompss2rt != null) ''
echo "export OMPSS2_RUNTIME=${rtname}" >> $out/nix-support/cc-wrapper-hook
echo "export ${homevar}=${ompss2rt}" >> $out/nix-support/cc-wrapper-hook
'' + lib.optionalString (ompss2rt != null && ompss2rt.pname == "nodes") ''
echo "export NOSV_HOME=${ompss2rt.nosv}" >> $out/nix-support/cc-wrapper-hook
'';
}

View File

@ -84,4 +84,8 @@ in
nosv
ovni
];
passthru = {
nosv = nosv;
};
}