summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ae441cbe5b36..d331b426cb09 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6668,7 +6668,7 @@ if test "$COM_IS_CLANG" = "TRUE"; then
save_CXX=$CXX
# compiler plugins must be built with "native" bitness of clang
# because they link against clang libraries
- CXX=`echo $CXX | sed -e s/-m64// -e s/-m32//`
+ CXX=${COMPILER_PLUGINS_CXX-$(echo $CXX | sed -e s/-m64// -e s/-m32//)}
CPPFLAGS="$CPPFLAGS $CXXFLAGS_CXX11 -I$CLANGDIR/include -I$CLANGDIR/tools/clang/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS"
AC_CHECK_HEADER(clang/AST/RecursiveASTVisitor.h,
[COMPILER_PLUGINS=TRUE],