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:
parent
9f245946d7
commit
ebeb2ff549
@ -46,5 +46,8 @@ in wrapCCWith {
|
|||||||
'' + lib.optionalString (ompss2rt != null) ''
|
'' + lib.optionalString (ompss2rt != null) ''
|
||||||
echo "export OMPSS2_RUNTIME=${rtname}" >> $out/nix-support/cc-wrapper-hook
|
echo "export OMPSS2_RUNTIME=${rtname}" >> $out/nix-support/cc-wrapper-hook
|
||||||
echo "export ${homevar}=${ompss2rt}" >> $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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,4 +84,8 @@ in
|
|||||||
nosv
|
nosv
|
||||||
ovni
|
ovni
|
||||||
];
|
];
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
nosv = nosv;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user