[all-commits] [llvm/llvm-project] 765301: [AMDGPU] Always pass `-mcpu` to the `lld` linker
Joseph Huber via All-commits
all-commits at lists.llvm.org
Wed Jun 28 06:52:54 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 765301183f58a28af65b112db44218dc224b9fec
https://github.com/llvm/llvm-project/commit/765301183f58a28af65b112db44218dc224b9fec
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2023-06-28 (Wed, 28 Jun 2023)
Changed paths:
M clang/lib/Driver/ToolChains/AMDGPU.cpp
M clang/test/Driver/amdgpu-toolchain.c
Log Message:
-----------
[AMDGPU] Always pass `-mcpu` to the `lld` linker
Currently, AMDGPU more or less only supports linking with LTO. If the
user does not either pass `-flto` or `-Wl,-plugin-opt=mcpu=` manually
linking will fail because the architecture's aren't compatible. THis
patch simply passes `-mcpu` by default if it was specified. Should be a
no-op if it's not actually used.
Reviewed By: yaxunl
Differential Revision: https://reviews.llvm.org/D153909
More information about the All-commits
mailing list