[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 04:59:24 PDT 2023


jhuber6 wrote:

> Is there anything we can do better than used? I don't want these to make it into the final binary

So, the other option would be to compile this and then `-mlink-builtin-bitcode` it. However the CMake isn't really built for this so it would be a lot of custom hackery.

Another solution would be to emit an internal alias to these variables, that would allow it to be stripped by LTO.

https://github.com/llvm/llvm-project/pull/65676


More information about the libc-commits mailing list