[all-commits] [llvm/llvm-project] 8225bc: [lldb][PlatformDarwin] Make PlatformDarwin define ...

Michael Buch via All-commits all-commits at lists.llvm.org
Sat Apr 18 23:03:56 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8225bcc141e749bcdb8b900d1e1a9f9a36fdac00
      https://github.com/llvm/llvm-project/commit/8225bcc141e749bcdb8b900d1e1a9f9a36fdac00
  Author: Michael Buch <michaelbuch12 at gmail.com>
  Date:   2026-04-19 (Sun, 19 Apr 2026)

  Changed paths:
    M lldb/include/lldb/Target/Platform.h
    M lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm
    M lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
    M lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h
    M lldb/source/Target/Target.cpp
    M lldb/unittests/Platform/CMakeLists.txt
    M lldb/unittests/Platform/PlatformDarwinTest.cpp

  Log Message:
  -----------
  [lldb][PlatformDarwin] Make PlatformDarwin define a safe-path for auto-loading scripting resources (#191454)

This patch adds a new API (`Platform::GetSafeAutoLoadPaths`) which gives
platforms a chance to advertise their safe-paths. We have a
`LLDB_SAFE_AUTO_LOAD_PATHS` CMake variable for this that vendors can
set, but for sensible defaults we wanted to bake them into LLDB for
convenience. We could set the defaults of the CMake variable
per-platform, but for Apple platforms that's trickier because the path
isn't statically known (it's the SDK path derived from the target's
triple).

Depends on:
* https://github.com/llvm/llvm-project/pull/191446
* https://github.com/llvm/llvm-project/pull/192703

Assisted-by: Claude
- Used Claude to write the skeleton of the test before manually cleaning
it up.



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