Skip to content

Commit

Permalink
Fixed Makefile llvm autodetect
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary authored Apr 17, 2020
1 parent d57a526 commit 0fd4966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fd4966

Please sign in to comment.