[all-commits] [llvm/llvm-project] b1c56f: [orc-rt] Add os_log logging backend (Darwin only) ...

Lang Hames via All-commits all-commits at lists.llvm.org
Sun Jul 12 22:08:32 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b1c56fb53a9c76d6b045ede49083b647ae049ffe
      https://github.com/llvm/llvm-project/commit/b1c56fb53a9c76d6b045ede49083b647ae049ffe
  Author: Lang Hames <lhames at gmail.com>
  Date:   2026-07-13 (Mon, 13 Jul 2026)

  Changed paths:
    M orc-rt/include/orc-rt-c/Logging.h
    M orc-rt/lib/executor/CMakeLists.txt
    A orc-rt/lib/executor/Logging_oslog.cpp
    M orc-rt/test/regression/lit.cfg.py
    A orc-rt/test/regression/logging/os_log/delivery.test
    A orc-rt/test/regression/logging/os_log/lit.local.cfg
    A orc-rt/test/regression/logging/os_log/no-printf-output.test
    M orc-rt/test/tools/orc-rt-log-check.cpp

  Log Message:
  -----------
  [orc-rt] Add os_log logging backend (Darwin only) (#209081)

Implement the os_log backend, selected with ORC_RT_LOG_BACKEND=os_log.
With this backend selected, the ORC_RT_LOG macros expand at the call
site to os_log_with_type. Each ORC runtime log level maps to an
os_log_type_t (error -> ERROR, warning -> DEFAULT, info -> INFO, debug
-> DEBUG). The compile-time ORC_RT_LOG_LEVEL floor still applies, but
runtime filtering is left to the system (e.g. `log config`), so the
printf backend's ORC_RT_LOG and ORC_RT_LOG_OUTPUT have no effect.

Records go to the "org.llvm.orc-rt" subsystem with the category as the
os_log category. (Per-category handles are created on first use and
cached).

Add regression tests under test/regression/logging/os_log:
no-printf-output.test checks that the backend produces no console
output, and an opt-in delivery test (llvm-lit --param
run-os-log-tests=1) scrapes `log show` to confirm records reach the
expected subsystem and category.



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