mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2025-02-17 08:27:39 +00: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
@ -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…
x
Reference in New Issue
Block a user