Tobias Grosser
7cb4ec5d69
cmake: Add xdot.py support as it already exists in autoconf.
...
llvm-svn: 126563
2011-02-27 04:11:05 +00:00
NAKAMURA Takumi
55dd89bf51
lib/Support/Errno.cpp: Check strerror_s() with HAVE_DECL_STRERROR_S in config.h.*.
...
AC_CHECK_FUNCS seeks a symbol only in libs. We should check the declaration in string.h.
FIXME: I have never seen mingw(s) have strerror_s() (not _strerror_s()).
FIXME: Autoconf/CMake may seek strerror_s() with the definition MINGW_HAS_SECURE_API in future.
llvm-svn: 125172
2011-02-09 04:18:48 +00:00
NAKAMURA Takumi
aa8b506820
Windows/DynamicLibrary.inc: Split explicit symbols into explicit_symbols.inc.
...
config.h.* have conditions whether each symbol is defined or not.
Autoconf and CMake may check symbols in libgcc.a for JIT on Mingw.
llvm-svn: 124950
2011-02-05 15:11:53 +00:00
Oscar Fuentes
e8f760372e
Moved to Clang's source tree its configuration options and associated
...
macros.
llvm-svn: 124824
2011-02-03 22:47:59 +00:00
Oscar Fuentes
c0fc5216b4
Platform tests for sys/uio.h' header and
writev' function.
...
This is the cmake equivalent for r124769.
llvm-svn: 124775
2011-02-03 04:23:07 +00:00
Oscar Fuentes
d79df5b7c8
Adds some platform checks to cmake/config-ix.cmake and fixes checking
...
for dlopen/dlerror.
Patch by arrowdodger!
llvm-svn: 124590
2011-01-31 18:25:25 +00:00
Oscar Fuentes
da69ba084d
Handles libffi on the CMake build.
...
Patch by arrowdodger!
llvm-svn: 123976
2011-01-21 15:42:54 +00:00
Oscar Fuentes
512d8eb82a
Add some platform checks. Also fix a typo on a Makefile.
...
Patch by arrowdodger!
llvm-svn: 123659
2011-01-17 16:35:14 +00:00
Oscar Fuentes
c9265ce51e
Make config.h.cmake similar to config.h.in
...
Patch by arrowdodger!
llvm-svn: 123539
2011-01-15 13:35:37 +00:00
Oscar Fuentes
2e491f8d47
Reorder macros on config.h.cmake to easily compare it against
...
config.h.in.
Patch by arrowdodger!
llvm-svn: 123445
2011-01-14 16:41:03 +00:00
Oscar Fuentes
9618cded65
Add some platform tests.
...
Patch by arrowdodger!
llvm-svn: 123388
2011-01-13 19:17:28 +00:00
Oscar Fuentes
f975a7423b
Platform tests for argz_* functions.
...
Patch by arrowdodger!
llvm-svn: 123376
2011-01-13 15:06:32 +00:00
Oscar Fuentes
82cc1fb69c
Add to the CMake build some options and platform tests supported by
...
the traditional build.
Patch by arrowdodger!
llvm-svn: 123233
2011-01-11 12:31:54 +00:00
Oscar Fuentes
184f5d0911
Rewrite handling of LLVM_ENABLE_PIC. It was being processed after
...
config.h was generated, so it had no effect on it.
Thanks to arrowdodger for pointing out this and a tentative patch.
llvm-svn: 123119
2011-01-09 14:34:39 +00:00
Michael J. Spencer
ce950c50c4
Support/FileSystem: Fix MinGW build. It doesn't have _chsize_s.
...
llvm-svn: 120826
2010-12-03 18:48:56 +00:00
Michael J. Spencer
8daaefa006
Endian: Get rid of LLVM_IS_HOST_BIG_ENDIAN.
...
llvm-svn: 117124
2010-10-22 18:45:12 +00:00
Michael J. Spencer
93269f7395
Rename LLVM_IS_TARGET_BIG_ENDIAN to LLVM_IS_HOST_BIG_ENDIAN to reflect what it actually means.
...
llvm-svn: 117092
2010-10-22 08:47:28 +00:00
Michael J. Spencer
b9734a5b12
Support: Add Endian.h
...
llvm-svn: 117057
2010-10-21 20:28:21 +00:00
Chandler Carruth
3f16e8b729
First step to allowing the resource directory of Clang to be adjusted for
...
strange packaging environments. The primary result of this is to expose
a (normally empty) CLANG_RESOURCE_DIR string in the autoconf and CMake builds.
This will in turn be used by a subsequent commit to Clang.
Regenerated configure and config.h.in thanks to Nick. =D
llvm-svn: 116802
2010-10-19 08:21:25 +00:00
Dan Gohman
8058e1b851
Attempt to support platforms which don't have fenv.h.
...
llvm-svn: 114196
2010-09-17 20:06:27 +00:00
Eric Christopher
da5541e56d
Fix LLVM target initialization to deal with sociopathic outside projects
...
that like to randomly define things like "X86", regenerate autoconf bits
and update cmake.
Fixes PR7852.
Patch by Xerxes Rånby!
llvm-svn: 112499
2010-08-30 18:34:48 +00:00
Oscar Fuentes
32d28f5432
Avoid multiple definition warnings when both config.h and
...
llvm-config.h are included.
This is the cmake counterpart of r110547. See bug #7809 .
llvm-svn: 110753
2010-08-10 23:48:22 +00:00
Oscar Fuentes
38ae8f5381
CMake: set configure macro LLVM_PREFIX
...
llvm-svn: 110536
2010-08-08 04:32:21 +00:00
Daniel Dunbar
3dd4738933
build: Add LLVM_NATIVE_ARCHNAME, which has the sensible value, without "Target"
...
appended.
llvm-svn: 110109
2010-08-03 14:26:17 +00:00
Chris Lattner
a1f4042939
improve portability to systems that don't have round, patch by
...
Evzen Muller!
llvm-svn: 103877
2010-05-15 17:11:55 +00:00
Jeffrey Yasskin
f468a14fb1
Tell Valgrind when we modify already-executed machine code so it knows
...
to re-instrument the code. We depend on the system valgrind.h to
avoid adding a new license.
llvm-svn: 98529
2010-03-15 04:57:55 +00:00
Rafael Espindola
6e1f7bb489
Add configure options for specifying where to look for libstdc++.
...
llvm-svn: 88943
2009-11-16 19:46:55 +00:00
Oscar Fuentes
c15d72f14b
CMake: Hopefully unbreak the build by mimicking the changes on the
...
other build system about the new C_INCLUDE_DIRS configure option.
llvm-svn: 86960
2009-11-12 06:48:09 +00:00
Oscar Fuentes
27c9bbc709
CMake: Pass -lm to check_symbol_exists for detecting several math
...
functions like floorf, ceilf, ... Add test for detecting nearbyintf.
This change was prompted by test/Transforms/SimplifyLibCalls/floor.ll
llvm-svn: 86954
2009-11-12 05:36:09 +00:00
Oscar Fuentes
b05535f7c5
CMake: Detect gv, circo, twopi, neato, fdo, dot and dotty.
...
Patch by Arnaud Allard de Grandmaison!
llvm-svn: 86547
2009-11-09 15:26:40 +00:00
Oscar Fuentes
a0309933c6
CMake: Detect dotty.
...
Patch by Arnaud Allard de Grandmaison!
llvm-svn: 86153
2009-11-05 19:03:26 +00:00
Edward O'Callaghan
af49208035
Fix LLVM CMake build system so that it may now work on Solaris and AuroraUX.
...
llvm-svn: 83819
2009-10-12 04:00:11 +00:00
Jeffrey Yasskin
ae5a12200c
Fix a compile failure introduced by r82675 on MinGW which doesn't have
...
setenv(). This patch just disables the test rather than getting putenv() to
work. Thanks to Sandeep Patel for reporting the problem.
llvm-svn: 82797
2009-09-25 21:07:20 +00:00
Gabor Greif
c243e77bde
revert r78628 and r78803 as these are not needed any more
...
llvm-svn: 80048
2009-08-25 23:02:21 +00:00
Daniel Dunbar
f965f98687
Remove alloca config.h support.
...
- I did not actually remove the configure test itself, someone who can
regenerate configure should do this (see FIXME in autoconf/configure.ac)
llvm-svn: 79881
2009-08-24 02:14:39 +00:00
Gabor Greif
c81cd5ffca
here comes the CMAKE part on LLVM_COMPACT_SENTINELS; see also r78628 and r78661
...
llvm-svn: 78803
2009-08-12 08:37:37 +00:00
Douglas Gregor
ea200f4d3a
CMake configuration: find mkdtemp, mkstemp, mktemp.
...
llvm-svn: 77219
2009-07-27 18:23:41 +00:00
Xerxes Ranby
d90b36055d
Implement cmake LLVM_MULTITHREADED gcc atomic builtin checks.
...
llvm-svn: 76221
2009-07-17 19:22:41 +00:00
Dan Gohman
4ce1ac82f7
LLVM doesn't use libelf. Remove libelf configurey.
...
llvm-svn: 75643
2009-07-14 18:06:25 +00:00
Jeffrey Yasskin
f8a1b98154
Have cmake define HAVE_STRERROR and friends to 1 when they're defined at all.
...
llvm-svn: 74791
2009-07-04 16:37:12 +00:00
Jeffrey Yasskin
29ea777c1e
Add a portable strerror*() wrapper, llvm::sys::StrError(). This includes the
...
Windows variant, strerror_s, but I couldn't test that.
I'll update configure and config.h.in in a subsequent patch.
llvm-svn: 74621
2009-07-01 18:11:20 +00:00
Douglas Gregor
bc78f97569
CMake: add configure checks for pthread_rwlock_init and pthread_getspecific
...
llvm-svn: 74284
2009-06-26 14:35:43 +00:00
Douglas Gregor
674c7a4c20
Work around build problem with OpenJDK, which defines X86 as a
...
macro. Fixes PR 4427. Patch by Xerxes Rånby!
llvm-svn: 73961
2009-06-23 17:21:35 +00:00
Douglas Gregor
f3f924bfb6
Define LLVM_NATIVE_ARCH in CMake, so that lli can actually JIT
...
llvm-svn: 73616
2009-06-17 17:01:56 +00:00
Douglas Gregor
472479c173
More portability checks for CMake's config.h.
...
llvm-svn: 72975
2009-06-05 23:46:34 +00:00
Douglas Gregor
8de3150a4d
Properly detect malloc_zone_statistics in CMake build system
...
llvm-svn: 72873
2009-06-04 17:22:52 +00:00
Douglas Gregor
1ad25cdc99
termios.h contains the winsize structure we need to determine the
...
width of a terminal. Don't try to get the width of a terminal if we
don't have this header.
llvm-svn: 72018
2009-05-18 17:21:34 +00:00
Douglas Gregor
26745696ef
Add terminal width detection to llvm::sys::Process. This is needed to
...
fix Clang PRs 4148 and 4183.
llvm-svn: 71448
2009-05-11 18:05:52 +00:00
Oscar Fuentes
bf169af79a
CMake: Detects libpthread and sets HAVE_LIBPTHREAD.
...
llvm-svn: 71084
2009-05-06 14:40:37 +00:00
Oscar Fuentes
7a12578fb4
CMake: Added cmakedefine for HAVE_PTHREAD_H.
...
Patch by Robert Schuster!
llvm-svn: 71083
2009-05-06 14:27:59 +00:00