From 0fd49664ca503b078905322f99d29be9a8e01e79 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Thu, 16 Apr 2020 17:44:25 -0700 Subject: [PATCH] Fixed Makefile llvm autodetect --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ae0f7655bd9..5ad145047d6 100644 --- a/Makefile +++ b/Makefile @@ -28,14 +28,14 @@ ifeq ($(ARCH), x86_64) # LLVM could be enabled if not in Windows ifneq ($(OS), Windows_NT) # Autodetect LLVM from llvm-config - ifeq (, $(shell which llvm-config)) + ifneq (, $(shell which llvm-config)) LLVM_VERSION := $(shell llvm-config --version) # If findstring is not empty, then it have found the value ifneq (, $(findstring 8,$(LLVM_VERSION))$(findstring 9,$(LLVM_VERSION))) backends += llvm endif else - ifeq (, $(shell which llvm-config-8)) + ifneq (, $(shell which llvm-config-8)) backends += llvm endif endif