compile

Automate multi-language builds for LoongCollector using CMake, Make, and Go tooling.

2.2k|444|Updated Nov 8, 2021
One-click install
npx skills add https://github.com/alibaba/loongcollector --skill compile-alibaba
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: compile
Source: https://github.com/alibaba/loongcollector/tree/main/.cursor/skills/compile
Command: npx skills add https://github.com/alibaba/loongcollector --skill compile-alibaba

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps developers build LoongCollector by detailing the complete compilation process for both the C++ core and the Go components, ensuring deterministic outputs.

Core Features & Use Cases

  • C++ build: configure with CMake, generate build files, and compile the core components.
  • Go build: compile the Go portions via plugin targets to produce binaries.
  • Use Case: When adding new code changes, follow this guide to ensure a clean, reproducible build across languages.

Quick Start

Create a build directory, configure with CMake for the C++ core and then run the build to compile both C++ and Go components.

Frequently Asked Questions about compile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compile LoongCollector with CMake and Go tooling?▼

To compile LoongCollector, create a build directory, configure with CMake for the C++ core, and run the build to compile both C++ and Go components via plugin targets.

What is the best way to ensure deterministic builds across C++ and Go components?▼

Deterministic builds across C++ and Go components are ensured by enforcing a structured build workflow with CMake, Make, and Go tooling, supporting incremental builds and reproducible results.

Does the LoongCollector build process support incremental builds?▼

Yes, the LoongCollector build process supports incremental builds by enforcing a build workflow with CMake and Make, ensuring reproducible results across platforms and environments.

How do I generate build files for the C++ core components?▼

You generate build files for the C++ core components by creating a build directory and configuring the project with CMake before running the build.

Can I compile Go portions separately during the LoongCollector build?▼

Yes, Go portions are compiled via plugin targets during the LoongCollector build process to produce binaries alongside the C++ core components.

What should I do to get a clean, reproducible build when adding new code changes?▼

When adding new code changes, follow the compilation guide to configure with CMake and run the build, ensuring a clean, reproducible build across C++ and Go languages.