meson: always define {,DRAW_}LLVM_AVAILABLE one way or the other

With the usual benefits of `#if` instead of `#ifdef` (mostly the fact
that typos can be build failures instead of silently being interpreted
as if 0).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3863>
This commit is contained in:
Eric Engestrom
2023-12-20 21:15:03 +00:00
committed by Marge Bot
parent ac5a27917d
commit 7e8db6aedf
24 changed files with 82 additions and 83 deletions

View File

@@ -98,7 +98,7 @@ get_disasm_string(aco::Program* program, std::vector<uint32_t>& code, unsigned e
aco::print_asm(program, code, exec_size / 4u, memf);
} else {
fprintf(memf, "Shader disassembly is not supported in the current configuration"
#ifndef LLVM_AVAILABLE
#if !LLVM_AVAILABLE
" (LLVM not available)"
#endif
", falling back to print_program.\n\n");