fix(rocm): Address package review findings
CI / check (push) Has been cancelled

This commit is contained in:
2026-11-12 23:55:09 +03:00
parent 8630307624
commit f2abdc96f9
6 changed files with 28 additions and 26 deletions
+15
View File
@@ -0,0 +1,15 @@
{
lib,
stdenv,
libc ? stdenv.cc.libc,
}:
# TheRock's compiler bypasses the Nix cc wrapper and needs explicit host paths.
lib.concatStringsSep " " [
"--gcc-toolchain=${stdenv.cc.cc}"
"-idirafter ${lib.getDev libc}/include"
"-B${libc}/lib"
"-L${libc}/lib"
"-L${stdenv.cc.cc.lib}/lib"
"-Wl,-rpath,${libc}/lib:${stdenv.cc.cc.lib}/lib"
"-Wl,--dynamic-linker=${stdenv.cc.bintools.dynamicLinker}"
]