Populate OMPSS2_RUNTIME in clang
This commit is contained in:
parent
bb6129a77e
commit
5553ee79a9
@ -20,11 +20,8 @@ let
|
|||||||
bintools = bintools-unwrapped;
|
bintools = bintools-unwrapped;
|
||||||
};
|
};
|
||||||
|
|
||||||
homevar = if rt.pname == "nanos6"
|
homevar = if rt.pname == "nanos6" then "NANOS6_HOME" else "NODES_HOME";
|
||||||
then
|
rtname = if rt.pname == "nanos6" then "libnanos6" else "libnodes";
|
||||||
"NANOS6_HOME"
|
|
||||||
else
|
|
||||||
"NODES_HOME";
|
|
||||||
|
|
||||||
targetConfig = stdenv.targetPlatform.config;
|
targetConfig = stdenv.targetPlatform.config;
|
||||||
inherit gcc;
|
inherit gcc;
|
||||||
@ -48,6 +45,7 @@ in wrapCCWith {
|
|||||||
|
|
||||||
# Setup NANOS6_HOME or NODES_HOME, based on the runtime.
|
# Setup NANOS6_HOME or NODES_HOME, based on the runtime.
|
||||||
echo "export ${homevar}=${rt}" >> $out/nix-support/setup-hook
|
echo "export ${homevar}=${rt}" >> $out/nix-support/setup-hook
|
||||||
|
echo "export OMPSS2_RUNTIME=${rtname}" >> $out/nix-support/setup-hook
|
||||||
|
|
||||||
wrap clang++ $wrapper $ccPath/clang++
|
wrap clang++ $wrapper $ccPath/clang++
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user