llvm.org GIT mirror llvm / ec4c02d
Don't link against libm and libpthread which don't exist in BeOS/Haiku. Also, Haiku like Linux provides <regex.h>, so use it. Patch by Paul Davey! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106620 91177308-0d34-0410-b5e6-96231b3b80d8 Nick Lewycky 9 years ago
4 changed file(s) with 8 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
33 include(CheckFunctionExists)
44 include(CheckCXXSourceCompiles)
55
6 if( UNIX )
6 if( UNIX AND NOT BEOS )
77 # Used by check_symbol_exists:
88 set(CMAKE_REQUIRED_LIBRARIES m)
99 endif()
4040 if( MINGW )
4141 target_link_libraries(tblgen imagehlp psapi)
4242 endif( MINGW )
43 if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD )
43 if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD AND NOT BEOS )
4444 target_link_libraries(tblgen pthread)
4545 endif()
2626 Modified as follows:
2727 * To GTestStreamToHelper in include/gtest/internal/gtest-internal.h,
2828 added the ability to stream with raw_os_ostream.
29 * To refresh Haiku support in include/gtest/internal/gtest-port.h,
30 see http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100621/102898.html
7979 // the given platform; otherwise undefined):
8080 // GTEST_OS_AIX - IBM AIX
8181 // GTEST_OS_CYGWIN - Cygwin
82 // GTEST_OS_HAIKU - Haiku
8283 // GTEST_OS_LINUX - Linux
8384 // GTEST_OS_MAC - Mac OS X
8485 // GTEST_OS_SOLARIS - Sun Solaris
219220 #elif defined(_AIX)
220221 #define GTEST_OS_AIX 1
221222 #elif defined(__HAIKU__)
222 #define GTEST_OS_HAIKU
223 #define GTEST_OS_HAIKU 1
223224 #endif // __CYGWIN__
224225
225 #if GTEST_OS_CYGWIN || GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_SYMBIAN || \
226 GTEST_OS_SOLARIS || GTEST_OS_AIX
226 #if GTEST_OS_CYGWIN || GTEST_OS_HAIKU || GTEST_OS_LINUX || GTEST_OS_MAC || \
227 GTEST_OS_SYMBIAN || GTEST_OS_SOLARIS || GTEST_OS_AIX
227228
228229 // On some platforms, needs someone to define size_t, and
229230 // won't compile otherwise. We can #include it here as we already