diff options
Diffstat (limited to 'compilerplugins/Makefile-clang.mk')
-rw-r--r-- | compilerplugins/Makefile-clang.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/Makefile-clang.mk b/compilerplugins/Makefile-clang.mk index 4d405e9bc5d2..c87338c36c6a 100644 --- a/compilerplugins/Makefile-clang.mk +++ b/compilerplugins/Makefile-clang.mk @@ -37,7 +37,7 @@ CLANGINCLUDES=-I$(CLANGDIR)/include -I$(CLANGDIR)/tools/clang/include -I$(CLANGB CLANGINDIR=$(SRCDIR)/compilerplugins/clang # Cannot use $(WORKDIR), the plugin should survive even 'make clean', otherwise the rebuilt # plugin will cause cache misses with ccache. -CLANGOUTDIR=$(SRCDIR)/compilerplugins/obj +CLANGOUTDIR=$(BUILDDIR)/compilerplugins/obj compilerplugins: $(CLANGOUTDIR) $(CLANGOUTDIR)/plugin.so @@ -63,7 +63,7 @@ endef $(foreach src, $(CLANGSRC), $(eval $(call clangbuildsrc,$(src),$(CLANGINDIR)/$(src),$(CLANGOUTDIR)/$(src:.cxx=.o)))) $(CLANGOUTDIR)/plugin.so: $(CLANGOBJS) - @echo [build LNK] $(subst $(SRCDIR)/,,$@) + @echo [build LNK] $(subst $(BUILDDIR)/,,$@) $(CXX) -shared $(CLANGOBJS) -o $@ # Clang most probably doesn't maintain binary compatibility, so rebuild when clang changes. |