---
name: build_cpp_linux
kind: function
lang: bash
domain: infra
version: "1.0.0"
purity: impure
signature: "build_cpp_linux(target?: string) -> void"
description: "Compila las funciones y apps C++ del registry para Linux nativo usando cmake"
tags: [cpp, build, cmake, linux, imgui, pendiente-usar]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: "error_go_core"
imports: []
tested: false
tests: []
test_file_path: ""
file_path: "bash/functions/infra/build_cpp_linux.sh"
params:
  - name: target
    desc: "Nombre del target cmake a compilar (opcional, sin argumento compila todo)"
output: "Compila los binarios en cpp/build/linux/"
---

# build_cpp_linux

Configura y compila el proyecto C++ (ImGui/ImPlot) para Linux nativo.

Usa cmake con compilacion paralela (`-j$(nproc)`). Si no se ha configurado antes, ejecuta `cmake -B` automaticamente.

```bash
fn run build_cpp_linux              # Compilar todo
fn run build_cpp_linux chart_demo   # Compilar solo chart_demo
```
