mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 18:30:09 +01:00
r600: replace binary HAVE_LLVM checks with LLVM_AVAILABLE
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Acked-by: Michel Dänzer <mdaenzer@redhat.com>
This commit is contained in:
parent
28cb16b6f8
commit
cf7d186be6
1 changed files with 2 additions and 6 deletions
|
|
@ -39,11 +39,7 @@
|
|||
#include <inttypes.h>
|
||||
#include <sys/utsname.h>
|
||||
|
||||
#ifndef HAVE_LLVM
|
||||
#define HAVE_LLVM 0
|
||||
#endif
|
||||
|
||||
#if HAVE_LLVM
|
||||
#ifdef LLVM_AVAILABLE
|
||||
#include <llvm-c/TargetMachine.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -1202,7 +1198,7 @@ bool r600_common_screen_init(struct r600_common_screen *rscreen,
|
|||
|
||||
snprintf(rscreen->renderer_string, sizeof(rscreen->renderer_string),
|
||||
"%s (%sDRM %i.%i.%i%s"
|
||||
#if HAVE_LLVM > 0
|
||||
#ifdef LLVM_AVAILABLE
|
||||
", LLVM " MESA_LLVM_VERSION_STRING
|
||||
#endif
|
||||
")",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue