1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.es/common/llvm-config.md
2024-12-28 07:14:01 +01:00

628 B

llvm-config

Obtiene variada información de configuración necesaria para compilar programas que utilizan LLVM. Típicamente llamado desde sistemas de construcción, como Makefiles o scripts de configuración. Más información: https://llvm.org/docs/CommandGuide/llvm-config.html.

  • Compila y vincula un programa basado en LLVM:

clang++ $(llvm-config --cxxflags --ldflags --libs) --output {{ruta/al/resultado_ejecutable}} {{ruta/a/source.cc}}

  • Imprime el PREFIJO de su instalación LLVM:

llvm-config --prefix

  • Imprime todos los objetivos soportados por su LLVM instalado:

llvm-config --targets-built