ClangSwift icon indicating copy to clipboard operation
ClangSwift copied to clipboard

"'clang-c/Platform.h' file not found" after brew install --with-toolchain

Open leogdion opened this issue 5 years ago • 2 comments

I ran brew install with tool chain llvm and I still get "'clang-c/Platform.h' file not found". Not sure if I am missing a step.

leogdion avatar Jul 10 '18 10:07 leogdion

You need a pkg-config file.

sudo swift ClangSwift/utils/make-pkgconfig.swift

ddddxxx avatar Jul 25 '18 02:07 ddddxxx

@ddddxxx what to do if I'm getting this:

Running /usr/bin/which /usr/local/opt/llvm/bin/llvm-config...
error: Failed to find llvm-config. Ensure llvm-config is installed and in your PATH

?

Is there a build instruction? Or at least a list of system requirements to have?

Update: brew install llvm helped

s1ddok avatar Jan 05 '19 11:01 s1ddok