--- Makefile.orig	2018-05-27 18:29:53 UTC
+++ Makefile
@@ -221,6 +221,10 @@ ifndef LLVM_CONFIG
     LLVM_CONFIG = llvm-config-3.9
   else ifneq (,$(shell which /usr/local/opt/llvm@3.9/bin/llvm-config 2> /dev/null))
     LLVM_CONFIG = /usr/local/opt/llvm@3.9/bin/llvm-config
+  else ifneq (,$(shell which llvm-config50 2> /dev/null))
+    LLVM_CONFIG = llvm-config50
+  else ifneq (,$(shell which llvm-config40 2> /dev/null))
+    LLVM_CONFIG = llvm-config40
   else ifneq (,$(shell which llvm-config39 2> /dev/null))
     LLVM_CONFIG = llvm-config39
   else ifneq (,$(shell which /usr/local/opt/llvm/bin/llvm-config 2> /dev/null))
