[llvm] [llvm] [cmake] Expose `LLVM_BUILD_TELEMETRY` in `LLVMConfig.cmake` (PR #126710)
Michał Górny via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 11 02:35:16 PST 2025
https://github.com/mgorny created https://github.com/llvm/llvm-project/pull/126710
Add `LLVM_BUILD_TELEMETRY` to the list of flags exposed in `LLVMConfig.cmake`. This fixes telemetry library being misdetected as `OFF` when building LLDB standalone.
Fixes bac62ee5b473e70981a6bd9759ec316315fca07d.
------
I guess this also needs a backport to 20.x.
>From f2441e92319aa961fbd8495f51a9a9af68b018e2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny at gentoo.org>
Date: Tue, 11 Feb 2025 11:25:05 +0100
Subject: [PATCH] [llvm] [cmake] Expose `LLVM_BUILD_TELEMETRY` in
`LLVMConfig.cmake`
Add `LLVM_BUILD_TELEMETRY` to the list of flags exposed
in `LLVMConfig.cmake`. This fixes telemetry library being misdetected
as `OFF` when building LLDB standalone.
Fixes bac62ee5b473e70981a6bd9759ec316315fca07d.
---
llvm/cmake/modules/LLVMConfig.cmake.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/llvm/cmake/modules/LLVMConfig.cmake.in b/llvm/cmake/modules/LLVMConfig.cmake.in
index c49f10b9343ff84..28655ee3ab87d67 100644
--- a/llvm/cmake/modules/LLVMConfig.cmake.in
+++ b/llvm/cmake/modules/LLVMConfig.cmake.in
@@ -100,6 +100,8 @@ set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
set(LLVM_BUILD_32_BITS @LLVM_BUILD_32_BITS@)
+set(LLVM_BUILD_TELEMETRY @LLVM_BUILD_TELEMETRY@)
+
if (NOT "@LLVM_PTHREAD_LIB@" STREQUAL "")
set(LLVM_PTHREAD_LIB "@LLVM_PTHREAD_LIB@")
endif()
More information about the llvm-commits
mailing list