diff options
author | Eric Engestrom <[email protected]> | 2019-08-27 23:58:57 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-09-06 22:19:01 +0100 |
commit | cf7d186be6c4b20a5d18c45df108b8fc9bfe3f4d (patch) | |
tree | 30e6e92caee097c9bdf76efa1418a46cf6960ad7 /src | |
parent | 28cb16b6f86718f16219218427b78981a9a4de65 (diff) |
r600: replace binary HAVE_LLVM checks with LLVM_AVAILABLE
Signed-off-by: Eric Engestrom <[email protected]>
Acked-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe_common.c | 8 |
1 files 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 <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 ")", |