diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-01-18 18:50:05 +0100 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-01-19 08:35:10 +0100 |
| commit | c20c5bfb40bb65d4196bcf97e80acd97496ddda3 (patch) | |
| tree | 351b452f55934e8468ddbdb79d16ccb7819eab29 /cmake | |
| parent | c51611c27f766bb4f413485bf8a12bca02e98669 (diff) | |
| download | ouroboros-c20c5bfb40bb65d4196bcf97e80acd97496ddda3.tar.gz ouroboros-c20c5bfb40bb65d4196bcf97e80acd97496ddda3.zip | |
build: Add an option for container compatibility
This adds a BUILD_CONTAINER option that disables some features that
require elevated privileges like setting thread priorities, which
might not be supported in docker environments.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/ipcp/ipcp.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/ipcp/ipcp.cmake b/cmake/ipcp/ipcp.cmake index 5b1eef09..f821f481 100644 --- a/cmake/ipcp/ipcp.cmake +++ b/cmake/ipcp/ipcp.cmake @@ -19,6 +19,8 @@ set(IPCP_SCHED_THR_MUL 2 CACHE STRING "Number of scheduler threads per QoS cube") set(DISABLE_CORE_LOCK TRUE CACHE BOOL "Disable locking performance threads to a core") +set(BUILD_CONTAINER FALSE CACHE BOOL + "Disable thread priority setting for container compatibility") if (CMAKE_SYSTEM_NAME STREQUAL "Linux") set(IPCP_LINUX_TIMERSLACK_NS 1000 CACHE STRING |
