Skip to content

Conversation

@kalibera
Copy link
Contributor

This declares a dependency of mesa on llvm. Without that, on my system llvm was not built and mesa started picking up the host system llvm, resulting in error messages like

In file included from /usr/include/llvm-10/llvm/Support/MemoryBuffer.h:22,
                 from /usr/include/llvm-10/llvm/Object/Binary.h:20,
                 from /usr/include/llvm-10/llvm/ExecutionEngine/ExecutionEngine.h:27,
                 from ../mesa-22.0.2/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp:58:
/usr/include/llvm-10/llvm/Support/FileSystem.h:164:3: error: 'uid_t' does not name a type; did you me
an 'pid_t'?

It is necessary to disable rtti as llvm is built without it:

tmp-mesa-x86_64-w64-mingw32.static.posix/mesa-22.0.2/meson.build:1736:8: ERROR: Problem encountered: 
LLVM was built without RTTI, so Mesa must also disable RTTI. Use an LLVM built with LLVM_ENABLE_RTTI 
or add cpp_rtti=false.

Also this conditionalizes installation of DLLs on static build.
I've not tested the built library, only the building of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant