[clang] [llvm] [HIP][MacOS] Mach-O support and Darwin toolchain fixes (PR #183991)
Paulius Velesko via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 1 06:52:06 PDT 2026
================
@@ -409,9 +409,11 @@ void HIP::constructGenerateObjFileFromHIPFatBinary(
ObjStream << "# *** Automatically generated by Clang ***\n";
if (FoundPrimaryGpuBinHandleSymbol) {
// Define the first gpubin handle symbol
- if (HostTriple.isWindowsMSVCEnvironment())
+ if (HostTriple.isWindowsMSVCEnvironment()) {
ObjStream << " .section .hip_gpubin_handle,\"dw\"\n";
- else {
+ } else if (HostTriple.isMacOSX()) {
+ ObjStream << " .section __HIP,__gpubin_handle\n";
----------------
pvelesko wrote:
@jhuber6 done
https://github.com/llvm/llvm-project/pull/183991
More information about the llvm-commits
mailing list