Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #640 from abbeyj/llvm-config-error-msg
Browse files Browse the repository at this point in the history
Provide a more friendly error message if we can't run llvm-config.
  • Loading branch information
erikrose committed Feb 10, 2017
2 parents 61af6a8 + 8f610c5 commit 48445a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dxr/plugins/clang/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
LLVM_CONFIG ?= llvm-config
LLVM_LDFLAGS := $(shell ${LLVM_CONFIG} --ldflags)
ifeq ($(LLVM_LDFLAGS),)
$(error Could not run $(LLVM_CONFIG). Please make sure it is available on your PATH \
or specify the absolute path of the llvm-config executable in the LLVM_CONFIG environment variable)
endif
CXXFLAGS := $(shell ${LLVM_CONFIG} --cxxflags) -std=c++11 -Wall -Wno-strict-aliasing $(if $(DEBUG),-O0 -g)
LDFLAGS := -fPIC -g -Wl,-R -Wl,'$$ORIGIN' $(LLVM_LDFLAGS) -shared

Expand Down

0 comments on commit 48445a5

Please sign in to comment.