llvm-project/clang/tools/clang-linker-wrapper
Joseph Huber f50a7c7a26 [LinkerWrapper] Fix optimized debugging builds for NVPTX LTO
The ptxas assembler does not allow the `-g` flag along with
optimizations. Normally this is degraded to line info in the driver, but
when using LTO we did not have this step and the linker wrapper was not
correctly degrading the option. Note that this will not work if the user
does not pass `-g` again to the linker invocation. That will require
setting some flags in the binary to indicate that debugging was used
when building.

This fixes #57990

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D134660
2022-09-27 10:49:17 -05:00
..
CMakeLists.txt [cmake] Slight fix ups to make robust to the full range of GNUInstallDirs 2022-07-26 14:48:49 +00:00
ClangLinkerWrapper.cpp [LinkerWrapper] Fix optimized debugging builds for NVPTX LTO 2022-09-27 10:49:17 -05:00
LinkerWrapperOpts.td [LinkerWrapper] Do not consume `--verbose` from the linker 2022-07-27 16:06:48 -04:00
OffloadWrapper.cpp [LinkerWrapper] Embed OffloadBinaries for OpenMP offloading images 2022-07-21 13:20:01 -04:00
OffloadWrapper.h [HIP] Add support for handling HIP in the linker wrapper 2022-07-11 15:49:23 -04:00