]> source.dussan.org Git - rspamd.git/commit
Don't use LLVM_CXX_FLAGS/LLVM_C_FLAGS
authorAnton Yuzhaninov <citrin+git@citrin.ru>
Tue, 30 Oct 2018 18:45:51 +0000 (14:45 -0400)
committerAnton Yuzhaninov <citrin+git@citrin.ru>
Tue, 30 Oct 2018 18:45:51 +0000 (14:45 -0400)
commit3ec6820a928849a1de07f963ee0fcef18ff82dcc
tree2327ee16c18bacd270c832d3afdbd9ab9b1eb98f
parenta796cd7321dd994a660d524ee72d6d117e8f7454
Don't use LLVM_CXX_FLAGS/LLVM_C_FLAGS

llvm-config --cxxflags shows CFLAGS used to compile clang. If clang
installed from package and package was build using GCC then it will
contain GCC specific flags. In case of clang installed as RPM packge
-specs= flags also added. There is not point to use them to
compile plugin. For now hardcode flags in clang-plugin/CMakeLists.txt

Add -O2 - we want plugin to work fast even if we to compiling rspamd
code with -O0.
clang-plugin/CMakeLists.txt