[PATCH] A couple minor changes to support sanitizers on FreeBSD 9.2
Viktor Kutuzov
vkutuzov at accesssoftek.com
Wed Mar 26 05:51:31 PDT 2014
Updated.
Hi kcc, samsonov,
http://llvm-reviews.chandlerc.com/D3031
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D3031?vs=7736&id=8128#toc
Files:
cmake/Modules/AddCompilerRT.cmake
Index: cmake/Modules/AddCompilerRT.cmake
===================================================================
--- cmake/Modules/AddCompilerRT.cmake
+++ cmake/Modules/AddCompilerRT.cmake
@@ -113,6 +113,13 @@
-I${COMPILER_RT_GTEST_PATH}
)
+# 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
+ CMAKE_SIZEOF_VOID_P MATCHES "8")
+ list(APPEND COMPILER_RT_GTEST_CFLAGS -D_SIZE_T_DECLARED)
+endif()
+
# Link objects into a single executable with COMPILER_RT_TEST_COMPILER,
# using specified link flags. Make executable a part of provided
# test_suite.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3031.3.patch
Type: text/x-patch
Size: 697 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140326/89223b73/attachment.bin>
More information about the llvm-commits
mailing list