aboutsummaryrefslogtreecommitdiffstats
path: root/llvm-host-build.mk
diff options
context:
space:
mode:
Diffstat (limited to 'llvm-host-build.mk')
-rw-r--r--llvm-host-build.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm-host-build.mk b/llvm-host-build.mk
index 7160b52..609d7e1 100644
--- a/llvm-host-build.mk
+++ b/llvm-host-build.mk
@@ -60,6 +60,7 @@ $(hide) $(TBLGEN) \
-I $(LLVM_ROOT_PATH)/include \
-I $(LLVM_ROOT_PATH)/host/include \
-I $(LLVM_ROOT_PATH)/lib/Target \
- -gen-$(strip $(1)) \
- -o $@ $<
+ $(if $(strip $(CLANG_ROOT_PATH)),-I $(CLANG_ROOT_PATH)/include,) \
+ -gen-$(strip $(1)) \
+ -o $@ $<
endef