xray: rename cmake file and build only on amd64 linux

This commit is contained in:
tomershafir 2024-06-05 12:40:18 +03:00
parent eae9622921
commit 3e8929f5f0
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ add_library(global-libs INTERFACE)
include (cmake/sanitize.cmake) include (cmake/sanitize.cmake)
include (cmake/instrument.cmake) include (cmake/xray_instrumentation.cmake)
option(ENABLE_COLORED_BUILD "Enable colors in compiler output" ON) option(ENABLE_COLORED_BUILD "Enable colors in compiler output" ON)

View File

@ -7,7 +7,7 @@ if (NOT ENABLE_XRAY)
return() return()
endif() endif()
if (NOT (ARCH_AMD64 AND (OS_LINUX OR OS_FREEBSD))) if (NOT (ARCH_AMD64 AND OS_LINUX))
message (STATUS "Not using LLVM XRay, only amd64 Linux or FreeBSD are supported") message (STATUS "Not using LLVM XRay, only amd64 Linux or FreeBSD are supported")
return() return()
endif() endif()