[all-commits] [llvm/llvm-project] f05387: [orc-rt] Add a configurable logging API with a no-...
Lang Hames via All-commits
all-commits at lists.llvm.org
Wed Jul 8 06:16:01 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f05387745e53a1fe298b4b45d66f40517ec7ace6
https://github.com/llvm/llvm-project/commit/f05387745e53a1fe298b4b45d66f40517ec7ace6
Author: Lang Hames <lhames at gmail.com>
Date: 2026-07-08 (Wed, 08 Jul 2026)
Changed paths:
M orc-rt/CMakeLists.txt
M orc-rt/include/CMakeLists.txt
A orc-rt/include/orc-rt-c/Logging.h
M orc-rt/include/orc-rt-c/config.h.in
M orc-rt/unittests/CMakeLists.txt
A orc-rt/unittests/LoggingTest.cpp
Log Message:
-----------
[orc-rt] Add a configurable logging API with a no-op backend (#208214)
Adds ORC_RT_LOG(Level, Category, Fmt, ...), a compile-time-configurable
logging facility for the ORC runtime, along with the default "none"
backend.
The backend is chosen at build time via the ORC_RT_LOG_BACKEND CMake
option (none, printf, os_log), and the lowest level to be compiled in
via ORC_RT_LOG_LEVEL.
The "none" backend implemented here compiles every log site out to
nothing (but still type-checks the format string and arguments in an
unevaluated context so disabled sites cannot bit-rot). Levels are Error,
Warning, Info, and Debug; categories are a typo-safe enum.
The printf and os_log backends are stubbed with #error and will follow.
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