[all-commits] [llvm/llvm-project] aa964f: [HIP] Fix -mllvm option for device lld linker
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Fri Jun 30 09:55:06 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aa964f157f9b50fab3895afbfda6e0915cf6bb4a
https://github.com/llvm/llvm-project/commit/aa964f157f9b50fab3895afbfda6e0915cf6bb4a
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2023-06-30 (Fri, 30 Jun 2023)
Changed paths:
M clang/lib/Driver/ToolChains/HIPAMD.cpp
M clang/test/Driver/hip-toolchain-mllvm.hip
Log Message:
-----------
[HIP] Fix -mllvm option for device lld linker
currently clang passes -mllvm options to the device lld linker plugin
when compiling HIP. This is against default clang behavior
which is only passing -mllvm options to linker plugin specified through -Wl
options. This patch lets clang only pass -Xoffload-linker -mllvm= options
to device lld linker plugin.
Fixes: https://github.com/llvm/llvm-project/issues/63604
Reviewed by: Joseph Huber, Matt Arsenault
Differential Revision: https://reviews.llvm.org/D154145
More information about the All-commits
mailing list