mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.3k stars 1.52k forks source link

Add specific dependency handling for clang #13134

Open dcbaker opened 3 weeks ago

dcbaker commented 3 weeks ago

Clang is fun. It has a C API library and C++ API libraries. It has the following configurations that need to be accounted for:

On top of that, to get the Clang Version for the C API you need to resort to some trickery. I've checked the implementation I came up with for clang 6-17 and it works for all of those. For the C++ API it's easy, because the header required is a C++ header.

TODO:

eli-schwartz commented 3 weeks ago

/cc @thesamesam