Douglas Gregor
28a3a15808
CMake: remove support for llvm-config-generated dependencies in the build
...
llvm-svn: 73979
2009-06-23 18:30:17 +00:00
Douglas Gregor
3ca1e68417
Eliminate object-relinking support from CMake. Fixes PR 4429 and
...
cleans up the CMake-based build system a bit. Started by a patch from
Xerxes Rånby.
llvm-svn: 73969
2009-06-23 17:57:35 +00:00
Douglas Gregor
0e78e242d7
CMake: Only include LLVM example executables in the build if requested by the user
...
llvm-svn: 73566
2009-06-16 22:25:45 +00:00
Douglas Gregor
f5291553f2
Introduce new headers whose inclusion forces linking and
...
initialization of all targets (InitializeAllTargets.h) or assembler
printers (InitializeAllAsmPrinters.h). This is a step toward the
elimination of relinked object files, so that we can build normal
archives.
llvm-svn: 73543
2009-06-16 20:12:29 +00:00
Oscar Fuentes
9f16ef410d
CMake: New variable LLVM_LIBDIR_SUFFIX.
...
Patch by Ingmar Vanhassel!
llvm-svn: 73216
2009-06-12 02:49:53 +00:00
Oscar Fuentes
cfe2266e89
CMake: Fixed parallel build problem related to native tblgen when
...
cross-compiling.
llvm-svn: 73180
2009-06-11 04:16:10 +00:00
Stefanus Du Toit
ddb6f7e10b
Allow setting the C runtime to be used with MSVC from cmake.
...
Patch by Tareq Siraj.
llvm-svn: 73084
2009-06-08 21:18:31 +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
31439d9bde
CMake: Use explicit dependencies for Xcode (as well as MSVC), to make
...
the CMake-generated Xcode project build properly.
llvm-svn: 72883
2009-06-04 19:53:37 +00:00
Oscar Fuentes
cbaf5a8795
CMake: Renamed LLVM_ENABLE_ASSERTS to
...
LLVM_ENABLE_ASSERTIONS. Fine-tuned the logic that controls the
definition of NDEBUG and _DEBUG macros.
Thanks to Jay Foad for this suggestions.
llvm-svn: 72864
2009-06-04 09:26:16 +00:00
Oscar Fuentes
86f4f18dca
CMake: Implements and documents option LLVM_ENABLE_ASSERTS.
...
llvm-svn: 72774
2009-06-03 15:11:25 +00:00
Oscar Fuentes
cccbe484b5
CMake: Added notes pointing to the LLVM CMake documentation.
...
llvm-svn: 68429
2009-04-04 22:52:02 +00:00
Oscar Fuentes
2da28965f6
CMake: defines and uses macro add_llvm_definitions for keeping track
...
of compiler parameters explicitly added by the build
specification. This macro replaces the cmake built-in
`add_definitions'.
Detects glibc and defines _GNU_SOURCE accordingly.
Resolves bug 3882.
llvm-svn: 68428
2009-04-04 22:41:07 +00:00
Sebastian Redl
e4e5b1c2f2
Fix the Win32 VS2008 build:
...
- Make type declarations match the struct/class keyword of the definition.
- Move AddSignalHandler into the namespace where it belongs.
- Correctly call functions from template base.
- Some other small changes.
With this patch, LLVM and Clang should build properly and with far less noise under VS2008.
llvm-svn: 67347
2009-03-19 23:26:52 +00:00
Oscar Fuentes
a760e8b5c5
CMake: auto-discover project files under the projects/ subdirectory.
...
Patch by Viktar Zviarovich!
llvm-svn: 66230
2009-03-06 01:16:52 +00:00
Chris Lattner
c6c7875f01
Enable PACKAGE_VERSION in cmake builds, this unbreaks the clang build with cmake.
...
Patch by Piotr Rak!
llvm-svn: 63213
2009-01-28 17:49:03 +00:00
Oscar Fuentes
3c4de0ae87
CMake: Option for building with -fPIC.
...
llvm-svn: 59739
2008-11-20 19:13:51 +00:00
Oscar Fuentes
eb9804efe1
CMake: Support for building 32 bits shared libraries on 64 bits GNU
...
systems. BUILD_32_BITS option renamed to LLVM_BUILD_32_BITS.
llvm-svn: 59568
2008-11-19 00:10:39 +00:00
Oscar Fuentes
5373c4c527
CMake: Option for enabling/disabling threads.
...
llvm-svn: 59565
2008-11-18 23:45:21 +00:00
Oscar Fuentes
9e15bc331b
CMake: Forces linking of the rest of architecture targets and its
...
respective asm printers on MSVC.
Based on a patch by Scott Graham.
llvm-svn: 59379
2008-11-15 22:51:03 +00:00
Oscar Fuentes
bc0f4b6c9a
CMake: Removed some cruft.
...
llvm-svn: 59376
2008-11-15 20:51:18 +00:00
Oscar Fuentes
a7630d40c0
CMake: Moved generation of Intrinsics.gen to
...
include/llvm/CMakeLists.txt. Does it with the `tablegen' cmake macro.
llvm-svn: 59342
2008-11-15 00:24:38 +00:00
Oscar Fuentes
2d0e56a05a
CMake: Use LLVM_MAIN_SRC_DIR instead of CMAKE_SOURCE_DIR, for
...
consistency.
Patch by Kevin Andre!
llvm-svn: 59326
2008-11-14 22:21:02 +00:00
Oscar Fuentes
e7f0c69eeb
CMake: Disallow in-source builds except when building with the Visual
...
Studio IDE. CMake would overwrite the makefiles distributed with LLVM.
llvm-svn: 59292
2008-11-14 03:43:18 +00:00
Oscar Fuentes
dcc0b8b548
CMake: Builds a native tblgen when cross-compiling and the user didn't
...
set LLVM_TABLEGEN.
llvm-svn: 58953
2008-11-10 02:35:55 +00:00
Oscar Fuentes
45f4e26142
CMake: Implement magic word `all' for selecting all targets. Check
...
that specified targets are known.
llvm-svn: 58951
2008-11-10 01:47:07 +00:00
Oscar Fuentes
4067286e8d
CMake: Non-working code for auto-building the native tblgen util when
...
cross-compiling.
llvm-svn: 58950
2008-11-10 01:32:14 +00:00
Oscar Fuentes
bb9c221f2a
CMake: Support for cross-compiling. For now, requires a previously
...
built native tblgen which is passed to cmake in the variable
LLVM_TABLEGEN.
See
http://www.cmake.org/Wiki/CmakeMingw
for a quick example on how to cross-compile with CMake.
llvm-svn: 58939
2008-11-09 18:53:19 +00:00
Richard Osborne
36eaf6067f
Add XCore backend to CMake build.
...
llvm-svn: 58843
2008-11-07 12:37:45 +00:00
Oscar Fuentes
8e964f2e6f
CMake: Support for building 32 bit mode libs and binaries on
...
Linux/x86-64.
llvm-svn: 58677
2008-11-04 03:27:24 +00:00
Cedric Venet
b7e79123d4
Change the name of the generated solution file for a CMake build. (from 'project' to 'LLVM').
...
!!!!!!!!!! Warning !!!!!!!!!!!!!!!
If you already have created a solution with cmake, you will need to manually open to the new one.
llvm-svn: 58461
2008-10-30 21:22:00 +00:00
Oscar Fuentes
1f9a5255c8
CMake: Reverted some unintentional changes on the previous commit.
...
llvm-svn: 58435
2008-10-30 17:21:37 +00:00
Oscar Fuentes
364cf5cca2
CMake: Cygwin pretends to be Unix.
...
Patch by Jay Foad.
llvm-svn: 58434
2008-10-30 17:15:54 +00:00
Oscar Fuentes
c2a8e16a50
CMake: Removed some cruft.
...
llvm-svn: 58358
2008-10-29 02:33:15 +00:00
Oscar Fuentes
8286c161d3
CMake: Removed unnecessary macro definitions. They are defined in
...
config.h
llvm-svn: 58177
2008-10-26 00:50:03 +00:00
Oscar Fuentes
995841f983
CMake: Directed bug reports to llvmbugs.
...
llvm-svn: 58134
2008-10-25 03:49:35 +00:00
Oscar Fuentes
edaf4cded2
CMake: MSVC++ no longer uses a special configuration method.
...
llvm-svn: 58132
2008-10-25 03:29:36 +00:00
Oscar Fuentes
916a2ebaf8
CMake: `make install' for libraries, executables and header files.
...
llvm-svn: 57945
2008-10-22 02:56:07 +00:00
Dan Gohman
268cfea6bc
Fun x86 encoding tricks: when adding an immediate value of 128,
...
use a SUB instruction instead of an ADD, because -128 can be
encoded in an 8-bit signed immediate field, while +128 can't be.
This avoids the need for a 32-bit immediate field in this case.
A similar optimization applies to 64-bit adds with 0x80000000,
with the 32-bit signed immediate field.
To support this, teach tablegen how to handle 64-bit constants.
llvm-svn: 57663
2008-10-17 01:33:43 +00:00
Oscar Fuentes
65859a84d0
CMake: Builds all targets.
...
llvm-svn: 56641
2008-09-26 04:40:32 +00:00
Oscar Fuentes
4536c07ad5
CMake: Disabled some warnings for MSVC.
...
llvm-svn: 56565
2008-09-24 19:27:54 +00:00
Oscar Fuentes
e51d9c0c3a
CMake build system: support for parallel builds.
...
llvm-svn: 56453
2008-09-22 18:21:51 +00:00
Oscar Fuentes
0f25988689
Initial support for the CMake build system.
...
llvm-svn: 56419
2008-09-22 01:08:49 +00:00