Skip to content

Commit

Permalink
Added support for LLVM 12
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Sep 6, 2021
1 parent 76e00c5 commit 274b9a3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,18 @@ ifneq ($(ENABLE_LLVM), 0)
LLVM_VERSION := $(shell llvm-config --version)

# If findstring is not empty, then it have found the value
ifneq (, $(findstring 11,$(LLVM_VERSION)))
ifneq (, $(findstring 12,$(LLVM_VERSION)))
compilers += llvm
else ifneq (, $(findstring 11,$(LLVM_VERSION)))
compilers += llvm
else ifneq (, $(findstring 10,$(LLVM_VERSION)))
compilers += llvm
endif
# … or try to autodetect LLVM from `llvm-config-<version>`.
else
ifneq (, $(shell which llvm-config-11 2>/dev/null))
ifneq (, $(shell which llvm-config-12 2>/dev/null))
compilers += llvm
else ifneq (, $(shell which llvm-config-11 2>/dev/null))
compilers += llvm
else ifneq (, $(shell which llvm-config-10 2>/dev/null))
compilers += llvm
Expand Down

0 comments on commit 274b9a3

Please sign in to comment.