mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 20:50:09 +01:00
LLVM_LIB_DIR is a variable used for runtime compilations. When cross compiling, LLVM_LIB_DIR must be set to the libclang path on the target. So, this path should not be retrieved during compilation but at runtime. dladdr uses an address to search for a loaded library. If a library is found, it returns information about it. The path to the libclang library can therefore be retrieved using one of its functions. This is useful because we don't know the name of the libclang library (libclang.so.X or libclang-cpp.so.X) v2 (Karol): use clang::CompilerInvocation::CreateFromArgs for dladdr v3 (Karol): follow symlinks to fix errors on debian Fixes: |
||
|---|---|---|
| .. | ||
| clc | ||
| glsl | ||
| isaspec | ||
| nir | ||
| spirv | ||
| builtin_types.py | ||
| builtin_types_c.py | ||
| builtin_types_cpp_h.py | ||
| builtin_types_h.py | ||
| glsl_types.c | ||
| glsl_types.h | ||
| glsl_types_impl.h | ||
| meson.build | ||
| nir_gl_types.h | ||
| nir_types.h | ||
| shader_enums.c | ||
| shader_enums.h | ||
| shader_info.h | ||