path: root/compilerplugins
diff options
authorMichael Stahl <>2014-01-09 21:20:44 +0100
committerMichael Stahl <>2014-01-10 00:21:51 +0100
commit3bdb781018c9a9a6778b1771a3e9346c2426e4f2 (patch)
tree89609c0e59f49a01187bbba41ed6a4d6b97a2395 /compilerplugins
parent913bf64b0bf1330a5055c26770faedf2ad7fc3c5 (diff)
compilerplugins: strip out -m32/-m64 from CXX
These are not part of LO and need to be built with native bitness of the compiler. Change-Id: I41fdec130a63e0c0d07f1df228031014cd2351c2
Diffstat (limited to 'compilerplugins')
1 files changed, 3 insertions, 2 deletions
diff --git a/compilerplugins/ b/compilerplugins/
index 82a4351bf34d..1121d32a3da7 100644
--- a/compilerplugins/
+++ b/compilerplugins/
@@ -9,6 +9,7 @@
# Make sure variables in this Makefile do not conflict with other variables (e.g. from gbuild).
# You may occassionally want to override some of these
+CLANGCXX=$(filter-out -m32 -m64,$(CXX))
# Compile flags ('make CLANGCXXFLAGS=-g' if you need to debug the plugin)
CLANGCXXFLAGS=-O2 -Wall -Wextra -g
@@ -73,7 +74,7 @@ CLANGOBJS=
define clangbuildsrc
$(3): $(2) $(SRCDIR)/compilerplugins/ $(CLANGOUTDIR)/clang-timestamp
@echo [build CXX] $(subst $(SRCDIR)/,,$(2))
-include $(CLANGOUTDIR)/$(1).d
@@ -85,7 +86,7 @@ $(foreach src, $(CLANGSRC), $(eval $(call clangbuildsrc,$(src),$(CLANGINDIR)/$(s
@echo [build LNK] $(subst $(BUILDDIR)/,,$@)
- $(QUIET)$(CXX) -shared $(CLANGOBJS) -o $@
+ $(QUIET)$(CLANGCXX) -shared $(CLANGOBJS) -o $@
# Clang most probably doesn't maintain binary compatibility, so rebuild when clang changes.
$(CLANGOUTDIR)/clang-timestamp: $(CLANGBUILD)/bin/clang