Commit 616c769f authored by Dylan Baker's avatar Dylan Baker

meson: Use cmake to find LLVM when building windows

It might be better to have a command line option for this.

We don't use cmake normally because it always results in static linking.
This is very problematic for *nix OSes which expect shared linking by
default, but for windows this isn't a problem as LLVM doesn't support
shared linking on windows anyway.
parent 6d198833
Pipeline #51343 failed with stages
in 27 minutes and 18 seconds
......@@ -1381,7 +1381,10 @@ else
with_gallium_opencl or _llvm == 'true'
static : not _shared_llvm,
method : 'config-tools',
# The cmake method always statically links, regardless of what the static
# key above is set to. On windows this doesn't matter as there is no
# support for libLLVM anyway, and the config-tool is hard to use.
method : host_machine.system() == 'windows' ? 'cmake' : 'config-tool',
with_llvm = dep_llvm.found()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment