From 38b19d2be603b8c8fc51e33398c293f27e83ab44 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 30 Aug 2026 16:06:44 +0200 Subject: [PATCH] Constrain the monitor build to Linux x86_64 and aarch64. --- monitor/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/monitor/CMakeLists.txt b/monitor/CMakeLists.txt index 7b058ec9..6d6cd0ae 100644 --- a/monitor/CMakeLists.txt +++ b/monitor/CMakeLists.txt @@ -12,6 +12,13 @@ project( VERSION ${TRACY_VERSION_STRING} ) +if(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux") + message(FATAL_ERROR "tracy-monitor is Linux-only") +endif() +if(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|amd64|aarch64|arm64)$") + message(FATAL_ERROR "tracy-monitor supports x86_64 and aarch64") +endif() + find_package(Threads REQUIRED) include(${CMAKE_CURRENT_LIST_DIR}/../cmake/config.cmake)