From cf7d186be6c4b20a5d18c45df108b8fc9bfe3f4d Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Tue, 27 Aug 2019 23:58:57 +0100 Subject: [PATCH] r600: replace binary HAVE_LLVM checks with LLVM_AVAILABLE MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Engestrom Acked-by: Michel Dänzer --- src/gallium/drivers/r600/r600_pipe_common.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 ")", -- 2.30.2