[all-commits] [llvm/llvm-project] 8bdbc5: [NFC][LLDB] Make it possible to detect if the comp...

Dan Liew via All-commits all-commits at lists.llvm.org
Fri Nov 21 19:01:52 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8bdbc57b8975d77da88562392299ee5d9c2b6cbb
      https://github.com/llvm/llvm-project/commit/8bdbc57b8975d77da88562392299ee5d9c2b6cbb
  Author: Dan Liew <dan at su-root.co.uk>
  Date:   2025-11-21 (Fri, 21 Nov 2025)

  Changed paths:
    M lldb/packages/Python/lldbsuite/test/decorators.py
    M lldb/test/Shell/helper/toolchain.py
    M llvm/utils/lit/lit/llvm/config.py

  Log Message:
  -----------
  [NFC][LLDB] Make it possible to detect if the compiler used in tests supports -fbounds-safety (#169112)

This patch makes it possible to detect in LLDB shell and API tests if
`-fbounds-safety` is supported by the compiler used for testing. The
motivation behind this is to allow upstreaming
https://github.com/swiftlang/llvm-project/pull/11835 but with the tests
disabled in upstream because the full implementation of -fbounds-safety
isn't available in Clang yet.

For shell tests when -fbounds-safety is available the
`clang-bounds-safety` feature is available which means tests can be
annotated with `# REQUIRES: clang-bounds-safety`.

API tests that need -fbounds-safety support in the compiler can use the
new `@skipUnlessBoundsSafety` decorator.

rdar://165225507



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