[llvm-commits] [llvm] r147215 - /llvm/trunk/cmake/config-ix.cmake

Ted Kremenek kremenek at apple.com
Thu Dec 22 17:31:46 PST 2011


Author: kremenek
Date: Thu Dec 22 19:31:45 2011
New Revision: 147215

URL: http://llvm.org/viewvc/llvm-project?rev=147215&view=rev
Log:
Use 'check_symbol_exists' instead of 'check_function_exists' for finding isatty.  This change allows Xcode generated projects to have HAVE_ISATTY to be properly defined.

Modified:
    llvm/trunk/cmake/config-ix.cmake

Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=147215&r1=147214&r2=147215&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Thu Dec 22 19:31:45 2011
@@ -94,7 +94,7 @@
 check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE)
 check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE)
 check_symbol_exists(setrlimit sys/resource.h HAVE_SETRLIMIT)
-check_function_exists(isatty HAVE_ISATTY)
+check_symbol_exists(isatty unistd.h HAVE_ISATTY)
 check_symbol_exists(index strings.h HAVE_INDEX)
 check_symbol_exists(isinf cmath HAVE_ISINF_IN_CMATH)
 check_symbol_exists(isinf math.h HAVE_ISINF_IN_MATH_H)





More information about the llvm-commits mailing list