Forrest logo
back to the llvm-config tool

llvm-config:tldr:f12a1

llvm-config: Print all targets supported by your LLVM build.
$ llvm-config --targets-built
try on your machine

The llvm-config command is a utility provided by the LLVM compiler infrastructure that provides information about the installed LLVM components and configuration.

When you run the llvm-config --targets-built command, it returns a list of target architectures that have been built and are supported by the installed LLVM installation.

A target architecture refers to the specific processor and/or microarchitecture for which code can be generated by the LLVM compiler. LLVM supports a wide range of target architectures, such as x86 (32-bit and 64-bit), ARM, PowerPC, MIPS, and others.

By using the --targets-built option with llvm-config, you can obtain a list of these target architectures that have been built and are available for use with the LLVM compiler. This information can be useful when configuring or building software that relies on LLVM, as it allows you to determine which targets are supported and potentially optimize code generation for specific architectures.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the llvm-config tool