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

Alexey Samsonov samsonov at google.com
Wed Mar 26 06:46:48 PDT 2014



================
Comment at: cmake/Modules/AddCompilerRT.cmake:119
@@ +118,3 @@
+if(CMAKE_SYSTEM MATCHES "FreeBSD-9.2-RELEASE" AND
+    CMAKE_SIZEOF_VOID_P MATCHES "8")
+  list(APPEND COMPILER_RT_GTEST_CFLAGS -D_SIZE_T_DECLARED)
----------------
CMAKE_SIZEOF_VOID_P EQUAL 8

================
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
----------------
I'm confused: why do you mention 32-bit mode here and use "sizeof(void*) == 8" below? Please change the wording of the comment.


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



More information about the llvm-commits mailing list