[PATCH] A couple minor changes to support sanitizers on FreeBSD 9.2

Viktor Kutuzov vkutuzov at accesssoftek.com
Mon Mar 24 00:55:32 PDT 2014


  > Alright, does it make sense to compile all the compiler-rt code and tests (not only files under lib/asan/tests) with -D_SIZE_T_DECLARED?

  Re: compiler-rt code: defining _SIZE_T_DECLARED will lead to the undefined size_t kind of errors. Once again, we should keep in mind that not all of the sources include <stddef.h> in front of other headers and the sources get first built with a host compiler, which is not necessarily a version of clang.

  Re: building tests: yes, adding -D_SIZE_T_DECLARED to COMPILER_RT_GTEST_INCLUDE_CFLAGS (set in cmake/Modules/AddCompilerRT.cmake) does the work.

http://llvm-reviews.chandlerc.com/D3031



More information about the llvm-commits mailing list