Commit Graph

36 Commits

Author SHA1 Message Date
Vsevolod Stakhov
969e2584db [Minor] Sigh, another workaround for broken blas 2020-08-27 21:12:31 +01:00
Vsevolod Stakhov
4ac1167612 [Minor] Link lapack as well 2020-08-19 15:32:23 +01:00
Vsevolod Stakhov
1a634c3d51 [Project] Detect memrchr in systems that supports it 2020-07-24 20:33:33 +01:00
Vsevolod Stakhov
4e0274cbc5 [Minor] Replace ADD_DEFINITIONS with ADD_COMPILE_OPTIONS 2020-06-02 12:08:38 +01:00
Vsevolod Stakhov
b2ae647a81 [Minor] Fix clang plugin with asan 2020-05-28 22:08:45 +01:00
Vsevolod Stakhov
4cbb5e934a [Rework] Remove old FindLua module, disable lua fallback when LuaJIT is enabled 2020-05-17 20:22:54 +01:00
Christian Göttsche
26e2a97b1c [Minor] enable Wmissing-format-attribute 2020-04-11 14:16:30 +02:00
Christian Göttsche
d6da3282ea [Minor] Enable missing_noreturn compiler warning 2020-04-11 14:06:55 +02:00
Christian Göttsche
11a64f8b09 [Minor] Print always IPO status 2020-04-11 14:06:55 +02:00
Vsevolod Stakhov
c2351037b5 [Feature] Support multiple base32 alphabets 2020-04-09 17:13:12 +01:00
Vsevolod Stakhov
f5c0d7116e [Minor] Support gcc static analyzer (from gcc 10) 2020-04-09 14:05:48 +01:00
Vsevolod Stakhov
fd787a9508 [Minor] Slghtly improve cmake reporting + use -O0 with full debug 2020-03-30 12:18:22 +01:00
Vsevolod Stakhov
41e28d1148 [Rework] Further project structure reorganisation 2020-02-11 12:34:40 +00:00
Vsevolod Stakhov
dadb994e8c [Minor] Remove dwarf-5 as it is not working with rpm 2020-01-27 12:48:33 +00:00
Peter Wu
3daf2762a9 [Minor] CMake: Add ENABLE_LTO option
* The `CMAKE_BUILD_TYPE=None` option is commonly used to respect the
  user's optimization flags. Users may be interested in enabling LTO
  anyway in that case. Implement this the Debian build.
* Remove typo, the value is called RelWithDebInfo. Enable LTO for this
  by default.
2020-01-21 04:16:26 +00:00
Peter Wu
3af38b8006 [Minor] Make ragel-generated files independent of the parent directory
* Use relative paths for `#line` directives to allow reproducible builds
  independent of the absolute build directory. For /b/rspamd/src/x.rl
  and build dir /b/build, it could result in `../../build/src/x.rl`.
* The `-L` option for `Inhibit writing #line directives` is useless, it
  just comments out the line with `/* ... */`, but that means that the
  source file is still different.
* Note that ragel only accepts one input file, despite plural `INPUTS`.
2020-01-21 03:16:57 +00:00
Christian Göttsche
25d8df0b73 [Minor] do not pass invalid C warnings to C++ flags
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
2020-01-16 19:37:12 +01:00
Christian Göttsche
e98f08c797 [Minor] use modern name -Wextra instead of -W 2020-01-16 19:37:12 +01:00
Christian Göttsche
1a7a4a3d89 [Minor] remove unused examplesdir 2020-01-16 16:02:58 +01:00
Vsevolod Stakhov
7fa1ebd8d6 [Minor] Fix misprint 2019-12-27 10:24:00 +00:00
Vsevolod Stakhov
4c81a52183 [Minor] Remove enforced "-O3" from contrib libraries 2019-12-25 13:05:01 +00:00
Vsevolod Stakhov
92e62855a6 [Minor] Allow hyperscan on i386 platform
Issue: #3195
2019-12-23 12:16:18 +00:00
Vsevolod Stakhov
80a9e13826 [Minor] It seems that -gembed-source is not working at all 2019-12-20 17:16:26 +00:00
Vsevolod Stakhov
d435f7dfe2 [Minor] Fix misprint 2019-12-20 14:09:50 +00:00
Vsevolod Stakhov
151f6d05f0 [Minor] Fix fast math usage 2019-12-20 14:07:54 +00:00
Vsevolod Stakhov
7058766513 [Minor] Improve build flags handling, add fast-math option 2019-12-20 13:51:36 +00:00
Petr Vaněk
2121a001ec Use CMAKE_CXX_FLAGS_{DEBUG,RELEASE} variable for C++
The CMAKE_CXX_FLAGS_{DEBUG,RELEASE} variable should be used with C++
rather than CMAKE_C_FLAGS_{DEBUG,RELEASE}.
2019-12-13 10:56:32 +01:00
Petr Vaněk
bbf8bb172d cmake: Unify ENABLE_OPENBLAS and ENABLE_BLAS
ENABLE_OPENBLAS is removed because it was not used to check if the
openblas library should be used. The ENABLE_BLAS is moved from
CMakeLists.txt to cmake/Openblas.cmake to have all related variables in
one file and to reduce a complexity of CMakeLists.txt slightly.
2019-11-26 19:16:12 +01:00
Vsevolod Stakhov
9ab726cd1d [Minor] Disable jemalloc on sanitized builds 2019-11-19 15:15:52 +00:00
Vsevolod Stakhov
fbd2c0e1e3 [Minor] Try to fix gcc sanitizers 2019-11-19 12:19:32 +00:00
Vsevolod Stakhov
c4f656fb18 [Minor] Fix debian flags 2019-11-18 14:47:17 +00:00
Vsevolod Stakhov
c3928cf525 [Rework] Further cmake system rework 2019-11-18 14:19:43 +00:00
Vsevolod Stakhov
7f482c08ce [Rework] Make cmake structure more modular 2019-11-18 13:01:36 +00:00
Vsevolod Stakhov
c15ca59b25 [Rework] Move cmake modules to a dedicated path 2019-11-15 11:58:43 +00:00
Vsevolod Stakhov
a1debba268 Revert "cmake: Use Find Modules to find Luajit and Lua" 2016-11-28 19:01:28 +00:00
Andreas Schneider
ea6f08a564 cmake: Use Find Modules to find Luajit and Lua 2016-11-28 17:41:40 +01:00