diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-12-11 15:45:16 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-12-11 15:45:16 +0100 |
commit | 2ac26dc83f2ce9c2b41f9d9b33dd4c0cdd8d1272 (patch) | |
tree | 85dfae491553cbdf58554f6fc6ddb2df54190bd5 /compilerplugins | |
parent | BUILD_DIR -> BUILDDIR, to be consistent with the other *DIR (diff) | |
download | core-2ac26dc83f2ce9c2b41f9d9b33dd4c0cdd8d1272.tar.gz core-2ac26dc83f2ce9c2b41f9d9b33dd4c0cdd8d1272.zip |
adjust clang plugins for srcdir != builddir
Change-Id: Ie4c934b52c4b010703e91f84b83e1fe590b5d187
Diffstat (limited to 'compilerplugins')
-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. |