Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the system llvm-config on macOS?

Tags:

xcode

macos

llvm

If I'm not mistaken, the compiler etc. installed as part of XCode use llvm. But I can't find an llvm-config binary to generate proper flags for command-line compilation to an llvm target. Where is such a thing on macOS?

I know I can install a new llvm via MacPorts or Homebrew, but I don't want to duplicate what's already there; I just want a way to get at the system configuration.

like image 959
Mark Reed Avatar asked Oct 05 '15 23:10

Mark Reed


People also ask

Where is LLVM-config located?

The llvm-config executable is located in bin\Release or bin\Debug , reflecting the build version.

Where is LLVM installed Mac?

It includes headers and libraries needed to build your own LLVM module. Your LLVM will be installed in /usr/local/opt/llvm .

How do I find my LLVM version on Mac terminal?

In the CMakeLists. txt file, look for the line that sets the LLVM_VERSION_MAJOR variable. The MAJOR, MINOR and PATCH versions will give you the exact version of LLVM on which the Apple build is based.

Does macOS have LLVM?

All of Apple's operating systems, iOS, macOS, tvOS and watchOS, are built with LLVM technologies.


1 Answers

llvm-config is used to build programs that would link against LLVM. Xcode does not distribute the LLVM libraries, and does not support linking against clang itself, so llvm-config is of no use in this context. What is your use case?

like image 55
Joky Avatar answered Oct 15 '22 05:10

Joky