From: Eric Engestrom Date: Tue, 27 Aug 2019 22:58:57 +0000 (+0100) Subject: r600: replace binary HAVE_LLVM checks with LLVM_AVAILABLE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf7d186be6c4b20a5d18c45df108b8fc9bfe3f4d;p=mesa.git r600: replace binary HAVE_LLVM checks with LLVM_AVAILABLE Signed-off-by: Eric Engestrom Acked-by: Michel Dänzer --- diff --git a/src/gallium/drivers/r600/r600_pipe_common.c b/src/gallium/drivers/r600/r600_pipe_common.c index 60d113e75ac..e91356094ff 100644 --- a/src/gallium/drivers/r600/r600_pipe_common.c +++ b/src/gallium/drivers/r600/r600_pipe_common.c @@ -39,11 +39,7 @@ #include #include -#ifndef HAVE_LLVM -#define HAVE_LLVM 0 -#endif - -#if HAVE_LLVM +#ifdef LLVM_AVAILABLE #include #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 ")",