[compiler-rt] [compiler-rt] Add COMPILER_RT_GPU_THIN_LTO to build with -flto=thin (PR #226916)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 28 04:56:15 PDT 2026
================
@@ -397,7 +399,11 @@ if(COMPILER_RT_GPU_BUILD)
append_list_if(UBSAN_COMMON_SUPPORTED_ARCH -ffreestanding SANITIZER_COMMON_CFLAGS)
append_list_if(COMPILER_RT_HAS_NOGPULIB_FLAG -nogpulib SANITIZER_COMMON_CFLAGS)
append_list_if(COMPILER_RT_HAS_NOSTDLIBINC_FLAG -nostdlibinc SANITIZER_COMMON_CFLAGS)
- append_list_if(COMPILER_RT_HAS_FLTO_FLAG -flto SANITIZER_COMMON_CFLAGS)
+ if(COMPILER_RT_GPU_THIN_LTO)
+ append_list_if(COMPILER_RT_HAS_FLTO_THIN_FLAG -flto=thin SANITIZER_COMMON_CFLAGS)
+ else()
+ append_list_if(COMPILER_RT_HAS_FLTO_FLAG -flto SANITIZER_COMMON_CFLAGS)
----------------
jhuber6 wrote:
Does this also cover the builtins? The compiler-rt build is weird.
https://github.com/llvm/llvm-project/pull/226916
More information about the llvm-commits
mailing list