How to disable building LLVM Clang Telemetry?

Are many users Linux and BSD systems who reject use non-free and non-free firmware packages concerned about adding unnecessary functionality like Clang Telemetry.

More info about Telemetry Framework: https://www.phoronix.com/news/LLVM-Telemetry-Framework

Is it possible to disable LLVMTelemetry build using single boolean flag to decrease build time?

keywords: llvm, clang, telemetry, cmake

Thanks for bringing this up. I asked something similar in the original RFC, but it doesn’t look like that made it into the original PR.

I’ve put up a PR to add a CMake flag to control building the framework: [llvm] Add CMake flag to compile out the telemetry framework by JDevlieghere · Pull Request #124850 · llvm/llvm-project · GitHub

1 Like

No particular objection, but I doubt that the telemetry framework will have any measurable impact on build time as it’s really quite simple.

It’s not a build time issue, as I agree that the original PR as stands should contribute negligible overhead.

Besides the (valid) ideological reasons that @GermanAizek brings up, there are vendors who need to comply with regulatory statures and are required to conduct security and privacy reviews if/when they want to incorporate telemetry into their products, especially telemetry provided by an external source.

In these cases, “we don’t implement it so it’s fine” is rarely an acceptable answer to the powers-that-be, and we need a mechanism to ensure it’s compiled out completely.