[all-commits] [llvm/llvm-project] 593fd4: [clang] Don't pass sanitizers' rtlibs to linker wi...

Dmitry Chestnykh via All-commits all-commits at lists.llvm.org
Fri Jul 11 23:44:35 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 593fd44a9dcf77db8348c37d70cfecef57c392c7
      https://github.com/llvm/llvm-project/commit/593fd44a9dcf77db8348c37d70cfecef57c392c7
  Author: Dmitry Chestnykh <dm.chestnykh at gmail.com>
  Date:   2025-07-12 (Sat, 12 Jul 2025)

  Changed paths:
    M clang/lib/Driver/SanitizerArgs.cpp
    M clang/test/Driver/sanitizer-ld.c

  Log Message:
  -----------
  [clang] Don't pass sanitizers' rtlibs to linker with `-r` (#147905)

If clang is invoked with `-r` (relocatable linking) then we shouldn't
construct sanitizer arguments and then pass sanitizer runtime libs to
the linker
GCC also skips runtime linking if `-r` is also here



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list