Index: Makefile.standalone |
diff --git a/Makefile.standalone b/Makefile.standalone |
index 201a8e4501fb04ed142bce617f7304ceedd239b3..8e9b8fe31456eb6c3ff48c9e1cfd307df6ccca51 100644 |
--- a/Makefile.standalone |
+++ b/Makefile.standalone |
@@ -219,7 +219,11 @@ else |
# LLVM autoconf build |
LLVM_LIBS := -lLLVM-3.7svn |
GTEST_LIB_PATH ?= -L../../out/llvm_x86_64_linux_work/Release+Asserts/lib |
- CLANG_FORMAT_PATH ?= ../../out/llvm_x86_64_linux_work/Release+Asserts/bin |
+ ifneq ($(wildcard ../../out/llvm_x86_64_linux_work/Release+Asserts/bin/clang-format),) |
+ CLANG_FORMAT_PATH ?= ../../out/llvm_x86_64_linux_work/Release+Asserts/bin |
+ else |
+ CLANG_FORMAT_PATH ?= ../../out/llvm_x86_64_linux_debug_work/Debug+Asserts/bin |
+ endif |
endif |
LLVM_LDFLAGS := $(LLVM_LIBS) \ |