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

Viktor Kutuzov vkutuzov at accesssoftek.com
Wed Mar 26 07:22:18 PDT 2014



================
Comment at: cmake/Modules/AddCompilerRT.cmake:117
@@ +116,3 @@
+# System headers incorrectly define 'size_t' as 'unsigned long' on
+# x86_64 FreeBSD 9.2 in 32-bit mode whereas 'unsigned int' is expected.
+if(CMAKE_SYSTEM MATCHES "FreeBSD-9.2-RELEASE" AND
----------------
Alexey Samsonov wrote:
> I'm confused: why do you mention 32-bit mode here and use "sizeof(void*) == 8" below? Please change the wording of the comment.
I believe CMAKE_SIZEOF_VOID_P MATCHES "8" means 64-bit host OS so it doesn't relate to the building mode.


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



More information about the llvm-commits mailing list