mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
Drop llvm-roc indirect dependency, and fix clang include dir and rocm-path for vanilla clang. rocm-comgr depend on clang. Closes: https://github.com/gentoo/gentoo/pull/26441 Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Signed-off-by: Benda Xu <heroxbd@gentoo.org>
15 lines
422 B
Diff
15 lines
422 B
Diff
Add --rocm-path=/usr argument in runtime because our rocm path is not in default seach list.
|
|
--- comgr/src/comgr-compiler.cpp
|
|
+++ comgr.orig/src/comgr-compiler.cpp
|
|
@@ -1096,6 +1096,10 @@
|
|
}
|
|
}
|
|
}
|
|
+ else {
|
|
+ llvm::SmallString<128> RealRocmDir = env::getLLVMPath();
|
|
+ Args.push_back(Saver.save(Twine("--rocm-path=") + RealRocmDir).data());
|
|
+ }
|
|
|
|
return processFiles(AMD_COMGR_DATA_KIND_BC, ".bc");
|
|
}
|