summaryrefslogtreecommitdiffstats
path: root/compilerplugins/Makefile-clang.mk
Commit message (Collapse)AuthorAgeFilesLines
* New COMPILER_PLUGINS_CXX to specify compiler to build Clang plugins withStephan Bergmann2016-02-261-2/+6
| | | | | | | ...instead of trying to second-guess what to strip off $(CXX) to make it fit. Keep the old way for existing build scripts that rely on it. Change-Id: I145bdcba6d02002a9b653b4deb6e7f5a9c76cc8f
* These version checks are about the Clang the plugins are built /against/Stephan Bergmann2016-02-261-1/+1
| | | | | | | ...not the (Clang) compiler they are being built /with/. (Also simplifies the checking #if code.) Change-Id: I416321be4ef4478785be40571f81500fd3b6feb8
* gbuild/config stop using VERBOSE, use only verbose=tNorbert Thiebaud2015-08-111-1/+1
| | | | | | | | | | configure.ac was setting VERBOSE=YES/NO when really we use verbose=t or verbose= Change-Id: I47aee8d177cb2d788a62ecdbbb9cc3695c2bb299 Reviewed-on: https://gerrit.libreoffice.org/17634 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
* Filter out all -fsanitize= args when building compilerpluginsStephan Bergmann2014-05-221-1/+1
| | | | Change-Id: Ic809ddad81608f107749498c1432606403ee2314
* Correct common misspellings, and remove some ASCII art along the way.Chris Laplante2014-05-171-1/+1
| | | | | | | Change-Id: I42787db31769e8bde984c5f4f0aa90335e889b1c Reviewed-on: https://gerrit.libreoffice.org/9356 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
* compilerplugins/clang: filter out -fsanitize=addressStephan Bergmann2014-05-091-1/+1
| | | | Change-Id: I3e78bd86c8010124a2d006f288095aac26e60797
* Drop CLANGBUILD in addition to CLANGDIRStephan Bergmann2014-02-251-2/+2
| | | | | | | | ...see <http://lists.freedesktop.org/archives/libreoffice/2014-February/059654.html> "Drop CLANGBUILD in addition to CLANGDIR?" Change-Id: I8d68aa0f2298240c8e7265cab273c602f5b6881a
* Allow building compilerplugins/clang on Mac OS XStephan Bergmann2014-02-211-1/+5
| | | | | | (at least against a self-built Clang configured --enable-keep-symbols) Change-Id: I6e38688c78f78aca1864530042159cdcef7a0694
* EXTERNAL_WARNINGS_NOT_ERRORS -> ENABLE_WERROR and be "TRUE"/""Matúš Kukan2014-02-201-1/+1
| | | | | | It's easier to type 'make ENABLE_WERROR= <module>' if one wants that. Change-Id: I2bb9911259f41ecae27dc110723f3364b3ff09cf
* compilerplugins: strip out -m32/-m64 from CXXMichael Stahl2014-01-101-2/+3
| | | | | | | These are not part of LO and need to be built with native bitness of the compiler. Change-Id: I41fdec130a63e0c0d07f1df228031014cd2351c2
* clang binary is in clang build directory, not with its sourcesLuboš Luňák2013-08-051-1/+1
| | | | Change-Id: If037eac010d3cb72ca185382232c211758d009e6
* work around the C++11 __float128 problem with libstdc++ headers and clangLuboš Luňák2013-06-131-1/+1
| | | | Change-Id: Ia1b443d22b3b7f6f93f1ad8c5fa760b0f1da3b83
* Ignore warnings in Clang headersStephan Bergmann2013-06-051-1/+1
| | | | | | (as occur at least in trunk Clang builds) Change-Id: I7e74200ae1042133fa04477e39e46fd2f01cc1b0
* obey --enable-werror when building clang pluginLuboš Luňák2013-05-311-1/+5
| | | | Change-Id: I8ca9b09a6ffd4b2f00740563fa9682fdabb26b3d
* reoder stuff in makefileLuboš Luňák2013-05-311-2/+2
| | | | | | At the top should be stuff to set manually if needed. Change-Id: I516ac6df8102f00f6fc34c4c87d040688fcc2e99
* silence compilerplugin buildPeter Foley2013-03-301-3/+5
| | | | Change-Id: I4397575e4665e8a257d0bd3e15245d996a48a1f4
* -Wextra for compiler pluginsLuboš Luňák2013-03-281-1/+1
| | | | Change-Id: I246dcf1d2c099c510435d21f0dd47e3c098456f2
* Enable -std=c++11 for compilerplugins/clangStephan Bergmann2013-03-191-1/+1
| | | | Change-Id: I4849656b16c2a7103217870050b0de3ccb97af56
* create an output dir that's already needed by $(shell ...)Luboš Luňák2013-02-071-1/+2
| | | | | | Otherwise there's an error message e.g. during a clean build. Change-Id: I42efd08e014a4ebe25cfd1a497f622e5ea5c39ad
* make sure the default target for compilerplugins is buildingLuboš Luňák2013-02-071-1/+3
| | | | | | | CLANGFORCE was the first in the makefile after c6ffe17631cccf11fbe00479d2169116d494a7da and therefore the default Change-Id: Id3b86a1ea2c27479067f7f55a977da3e6e8a2dfb
* a bit more reliable detection of removed/added sourcesLuboš Luňák2013-02-021-0/+4
| | | | Change-Id: I7fdde46334c648ab6cba54210e31fada87dcfb55
* automatically link all .cxx files in clang/ into the pluginLuboš Luňák2013-02-021-12/+18
| | | | | | | | | This means that just moving sources to the dir will enable the plugin action in that source, without modifying any sources, so those changes would not be accidentally committed when using a rewriter to change LO sources. Change-Id: Ic5a9c52dbf1939a1e78ad39ed6691ce3a1f399df
* move plugin handling to separate source filesLuboš Luňák2013-02-021-0/+1
| | | | Change-Id: Ifa1af34121bda9ca3250d09a3b8a46ea226795ed
* one more config/ -> config_host/ fix after the renameLuboš Luňák2013-02-011-1/+1
| | | | Change-Id: I347790e1ca2ee6a27303d3644aa1459ff76ba4b0
* do not set our clang timestamp to the timestamp of the clang binaryLuboš Luňák2013-01-061-1/+1
| | | | | | | | | | | | | | | If the clang binary comes from a package which had been built before any of our clang related sources were changed the last time, the timestamp would be older and so there would be no rebuild. So do the stamp handling the usual way, clang upgrades will work fine, downgrades will not, but that's the same problem like with downgrading a library and its headers. To somewhat mitigate the problem (Clang plugin doesn't get cleaned by 'make clean'), include the full Clang version (which includes SVN revision) in config_clang.h and make all Clang plugin code include that, so at least configure re-run will trigger a rebuild if necessary. Change-Id: I993197f79e92e36105092c92c33b2e1db343e975
* rewriter plugin for removing forward rtl string declarationsLuboš Luňák2013-01-041-0/+1
| | | | Change-Id: I12bf38985ae62756973c05aacf762ae3c405ac9b
* config_clang.hLubos Lunak2012-12-261-1/+1
|
* adjust clang plugins for srcdir != builddirLuboš Luňák2012-12-111-2/+2
| | | | Change-Id: Ie4c934b52c4b010703e91f84b83e1fe590b5d187
* CLANGPLUGIN_CPPFLAGS did not actually workStephan Bergmann2012-12-071-6/+2
| | | | | | | | ...it just appeared to work on machines that happen to have /usr/bin/clang. So hoist CLANGDIR/CLANGBUILD from compilerplugins/Makefile-clang.mk to configure.ac instead. Change-Id: Ie5d9c6bb8e9d0caa1583d78c8693f06b69873095
* CLANGPLUGIN_CPPFLAGS for building plugin for Clang in nonstandard locationStephan Bergmann2012-10-221-1/+1
| | | | | | | (i.e., configure with CLANGPLUGIN_CPPFLAGS=-I.../clang-installation/include -I.../clang-build/tools/clang/include) Change-Id: Ic6d2973629103f71c32f44ebba2ac70d137d18e7
* rewriter for postfix->prefix operator++Luboš Luňák2012-10-151-0/+1
| | | | Change-Id: I59a7490ec76b10fd31033d1ceccd1e3eae0ad398
* support for compiler rewritersLuboš Luňák2012-10-151-5/+7
| | | | Change-Id: I12e98ac9fc49ef2007914324006a396d183b778c
* compiler check to compare SAL_WARN/LOG areas against sal/inc/sal/log-areas.doxLuboš Luňák2012-10-131-1/+2
| | | | | | | Some of the areas are guesses I've added after seeing them, whoever feels reponsible for whichever part of the code feel free to adjust them. Change-Id: I2192de84d51cc2bc7c28fa84019d38b465985d15
* print something when compiling clang plugin tooLuboš Luňák2012-10-121-0/+2
| | | | Change-Id: Ia312533381260a7c506dfd75b9f88c74a8329958
* rebuild clang plugin when clang changesLuboš Luňák2012-10-121-1/+5
| | | | Change-Id: Ia4192224d0b217ba2393dc457250cf12febe9306
* note about (not) linking llvm/clang librariesLuboš Luňák2012-10-091-0/+4
| | | | Change-Id: I628e3b99b69d238abc9df3e62e77b30eb85f1a0d
* compiler plugin check for if/while/true bodies with possibly {} missingLuboš Luňák2012-10-091-1/+4
| | | | Change-Id: Ia84c70006b0b8a039b6fea27f3c5cde796f25d03
* compiler check for unused variablesLuboš Luňák2012-10-091-1/+1
| | | | | | | This is for variables that the compiler itself cannot figure out (e.g. non-trivial ctors). The classes need to be marked manually. Change-Id: I0109972e11e20578b1adc32065f701a871ee21aa
* initial support for clang compiler pluginsLuboš Luňák2012-10-091-0/+60
The plugin is intentionally built using a custom Makefile, because it's used by gbuild, so I don't want to build the plugin using gbuild too. It is also intentionally not placed under workdir/, as that is cleaned by 'make clean', the plugin is cleaned only by 'make distclean', so that cleaning it doesn't cause ccache misses. No actual functionality in the plugin itself yet. Change-Id: Ic05eba8d6260eec123c9e699eb5385abfe1b832f