This commit is contained in:
@@ -33,16 +33,10 @@ let
|
||||
tqdm
|
||||
]
|
||||
);
|
||||
# The SDK compiler bypasses Nix's cc wrapper and needs explicit host paths.
|
||||
hipHostFlags = lib.concatStringsSep " " [
|
||||
"--gcc-toolchain=${stdenv.cc.cc}"
|
||||
"-idirafter ${lib.getDev glibc}/include"
|
||||
"-B${glibc}/lib"
|
||||
"-L${glibc}/lib"
|
||||
"-L${stdenv.cc.cc.lib}/lib"
|
||||
"-Wl,-rpath,${glibc}/lib:${stdenv.cc.cc.lib}/lib"
|
||||
"-Wl,--dynamic-linker=${stdenv.cc.bintools.dynamicLinker}"
|
||||
];
|
||||
hipHostFlags = import ../../_lib/therock-host-flags.nix {
|
||||
inherit lib stdenv;
|
||||
libc = glibc;
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "strata";
|
||||
|
||||
Reference in New Issue
Block a user