-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
Showing
2 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters