[libc-commits] [libc] [libc] Fix linking of AMDGPU device runtime control constants for math (PR #65676)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Fri Sep 8 05:22:33 PDT 2023
jhuber6 wrote:
> Cmake cannot and should not be trying to link these. -mlink-builtin-bitcode is the only correct way to link device libs
Sorry, I wasn't specific enough. I was talking about compiling this header as a bitcode file, then using `-mlink-builtin-bitcode` on the device libs. That would be a nightmare of CMake since we'd need to somehow only pass the flag to the correct architecture.
https://github.com/llvm/llvm-project/pull/65676
More information about the libc-commits
mailing list