try to autodetect flags needed to build Clang plugins

Desktop / LibreOffice - Luboš Luňák [collabora.com] - 7 October 2019 19:57 EDT

Instead of having a lot of it hardcoded, which brings problems like:- Clang-to-be-10 has switched to -std=c++14, so our hardcoded c++11 makes the build fail- I cannot compile with my openSUSE-shipped clang, because it ships only libclang-cpp and not the other libClangSomething libs The possibility to explicitly set the necessary variables is still there.

Change-Id: I58d401d4584fa064f1c1351a8a06ff4e29643063 Reviewed-on: https://gerrit.libreoffice.org/80300

ad5cbcf6ba0a try to autodetect flags needed to build Clang plugins
compilerplugins/Makefile-clang.mk | 49 +++++++----------
compilerplugins/clang/sharedvisitor/analyzer.cxx | 17 +++---
compilerplugins/clang/sharedvisitor/generator.cxx | 2 +-
config_host.mk.in | 3 +
configure.ac | 67 +++++++++++++++++++++--
5 files changed, 95 insertions(+), 43 deletions(-)

Upstream: cgit.freedesktop.org


  • Share