Skip to content

Fix opencl-less build with llvm 10

Mariusz Ceier requested to merge (removed):master into master

src/gallium/auxiliary/gallivm/lp_bld.h sets GALLIVM_HAVE_CORO to 1 when LLVM major version is >= 8 enabling the use of coroutines in src/gallium/auxiliary/gallivm/lp_bld_init.c.

This causes undefined references to LLVMAddCoroEarlyPass, LLVMAddCoroSplitPass and LLVMAddCoroElidePass in src/gallium/auxiliary/gallivm/lp_bld_init.c when mesa is being built with opencl disabled - since meson doesn't link with libLLVMCoroutines in that case.

Signed-off-by: Mariusz Ceier

Merge request reports