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.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm-host-build.mk b/llvm-host-build.mk
index d7ef682..fe68934 100644
--- a/llvm-host-build.mk
+++ b/llvm-host-build.mk
@@ -63,5 +63,7 @@ $(hide) $(TBLGEN) \
-I $(LLVM_ROOT_PATH)/lib/Target \
$(if $(strip $(CLANG_ROOT_PATH)),-I $(CLANG_ROOT_PATH)/include,) \
-gen-$(strip $(1)) \
- -o $@ $<
+ -o $@.tmp $<
+$(hide) $(LLVM_ROOT_PATH)/copy-diff.py $@.tmp $@
+$(hide) $(RM) $@.tmp
endef