Nick Lewycky
ea1dbad689
Rename profile_rt.so to libprofile_rt.so under configure+make (it already was
...
under cmake).
Add libprofile_rt.a so that we can tell clang to link against it in --coverage
mode. Also turn it on by default in cmake builds.
Oscar, this touches a change you made for EXCLUDE_FROM_ALL support -- I think
I've done the right thing, but please let me know (or fix and commit) if not!
llvm-svn: 130470
2011-04-29 02:12:06 +00:00
Nick Lewycky
6a72236e5f
Add cmakefiles to build profile_rt.so!
...
llvm-svn: 130191
2011-04-26 05:48:41 +00:00
Chris Lattner
0304b82f80
Fix a ton of comment typos found by codespell. Patch by
...
Luis Felipe Strano Moraes!
llvm-svn: 129558
2011-04-15 05:18:47 +00:00
Oscar Fuentes
69c955a67e
Supports building with a list of targets that does not contain
...
X86. Fixes PR9533.
llvm-svn: 128154
2011-03-23 17:42:13 +00:00
Oscar Fuentes
0e9aa3de87
Removed workaround for unspecified build problem on MinGW.
...
Tested that MinGW/MSYS builds fine without that.
llvm-svn: 128033
2011-03-21 22:53:51 +00:00
Bill Wendling
f93e7d6c17
Change the next release number to 3.0svn.
...
llvm-svn: 127213
2011-03-08 03:00:02 +00:00
Oscar Fuentes
55a2d6fe22
Cmake fix for option defaults not being set correctly on first run
...
On the first cmake run before the caches has been updated with the
default options, options defined after HandleLLVMOptions are always
treated as off inside HandleLLVMOptions.
Patch by Erik Olofsson!
llvm-svn: 126790
2011-03-01 22:31:19 +00:00
Oscar Fuentes
8b7659cfbd
Install include/llvm/Support/LICENSE.TXT. PR9321.
...
llvm-svn: 126571
2011-02-27 13:32:50 +00:00
NAKAMURA Takumi
684e41daef
CMake: Define LLVM_INCLUDE_TESTS in cmake/modules/HandleLLVMOptions.cmake. It affects testing stuff on clang-standalone build.
...
llvm-svn: 126107
2011-02-21 03:21:06 +00:00
Oscar Fuentes
22247bd624
Put targets on folders, if the IDE supports the feature.
...
Requires CMake 2.8.3 or newer.
llvm-svn: 126092
2011-02-20 22:06:10 +00:00
Oscar Fuentes
6e5d344a2e
Move library stuff out of the toplevel CMakeLists.txt file.
...
llvm-svn: 125968
2011-02-18 22:06:14 +00:00
Oscar Fuentes
5b5316fae9
New library: LLVMX86Utils.
...
llvm-svn: 125786
2011-02-17 22:26:11 +00:00
Oscar Fuentes
96b319a7d0
Add current binary and source directories to the header search list
...
for all compiler invocations.
llvm-svn: 125513
2011-02-14 20:13:58 +00:00
Oscar Fuentes
f42fbe0c95
Moved more stuff to HandleLLVMOptions.cmake
...
llvm-svn: 124968
2011-02-05 19:08:42 +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
51a072b7d8
Changes for building Clang and others using LLVM as an external
...
library.
Installs tblgen (required by Clang).
Translates handling of user settings and platform-dependant options to
its own file, where it can included by another project.
Installs the .cmake files required by projects like Clang.
llvm-svn: 124816
2011-02-03 20:57:36 +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
Francois Pichet
2ce858a943
Suppress warning "switch statement contains 'default' but no 'case' labels" on MSVC.
...
llvm-svn: 123610
2011-01-17 02:07:17 +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
07e2fbd31e
Apply -fPIC to C sources too.
...
llvm-svn: 123122
2011-01-09 17:38:31 +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
Oscar Fuentes
fb15f6c494
Don't use -O3 on Mingw, as people report it as unreliable. Use -O2
...
instead.
llvm-svn: 123028
2011-01-07 20:31:03 +00:00
Oscar Fuentes
dd676ee5b1
New cmake option LLVM_APPEND_VC_REV for controlling when the VC
...
revision id is appended to the LLVM version string. Defaults to
OFF.
Until now the VC revision id was always appended to the revision
string whenever cmake was invoked (either explicitly or implicitly
because a cmake source file changed). This was causing massive
recompilations because config.h are reconfigured with the new contents
of PACKAGE_VERSION.
llvm-svn: 122240
2010-12-20 09:47:13 +00:00
Michael J. Spencer
ef841c81d8
CMake: Cleanup and document MSVC warning flags.
...
llvm-svn: 122115
2010-12-18 00:18:58 +00:00
Michael J. Spencer
4ff8736610
CMake: Add FileUpdate to the build.
...
llvm-svn: 121386
2010-12-09 17:54:44 +00:00
Francois Pichet
95e129a686
Promote "enumerator in switch of enum is not handled" to level 1 warning on MSVC. It was disabled by default.
...
llvm-svn: 121096
2010-12-07 01:25:06 +00:00
Francois Pichet
2fac2ab94d
Disable C++ exception handling on MSVC.
...
Total size of bin\Release on disk goes from 82.9 MB to 74.2 MB. (~10% saving)
llvm-svn: 120908
2010-12-04 14:30:22 +00:00
Michael J. Spencer
d5ec932c3a
Merge System into Support.
...
llvm-svn: 120298
2010-11-29 18:16:10 +00:00
NAKAMURA Takumi
a1049dbd9a
CMake: lit(check.vcproj) can run with multiple configurations on Visual Studio.
...
Unittests need LLVM_BUILD_MODE to pick up each test.
Confirmed on CentOS5, Mingw, MSYS, and with possible configurations on VS8 and VS10.
llvm-svn: 120212
2010-11-27 13:10:11 +00:00
Francois Pichet
b6059900a7
Disable warning C4291 on MSVC. Caused because class AttributeList provides a non implemented operator delete without a corresponding new.
...
llvm-svn: 119902
2010-11-20 15:39:03 +00:00
NAKAMURA Takumi
a9e09ea649
CMakeLists.txt: On MSVS10, touch LLVM.sln as workaround, w/e project files are changed, to avoid the Dialog Hell. Thanks to Oscar.
...
FIXME: This could be removed with future version of CMake.
llvm-svn: 119780
2010-11-19 03:19:18 +00:00
Wesley Peck
849367836f
Make MCJIT work with CMake.
...
llvm-svn: 119589
2010-11-17 23:35:07 +00:00
Michael J. Spencer
23f31df887
Add LLVMObject Library.
...
llvm-svn: 119107
2010-11-15 03:21:41 +00:00
Oscar Fuentes
81233fbb1d
Detect presence of AsmPrinter's. Remove some cruft too.
...
llvm-svn: 119077
2010-11-14 21:17:13 +00:00
Chris Lattner
ff3afccc6d
hopefully unbreak the cmake build, patch by frits van bommel.
...
llvm-svn: 119069
2010-11-14 20:51:15 +00:00
Oscar Fuentes
090b3ad054
CMakeLists.txt: removed mismatched endif predicate.
...
llvm-svn: 119064
2010-11-14 20:15:05 +00:00
Chris Lattner
9cdb77382f
hopefully fix cmake as well.
...
llvm-svn: 119058
2010-11-14 19:12:57 +00:00
Chris Lattner
cec3b226a4
move all the target's asmprinters into the main target. The piece
...
that should be split out is the InstPrinter (if a target is mc'ized).
This change makes all the targets be consistent.
llvm-svn: 119056
2010-11-14 18:43:56 +00:00
NAKAMURA Takumi
5b3bb628fb
CMake: Add the new option "LLVM_LIT_ARGS".
...
Defaults:
if (MSVC OR XCODE): "-sv --no-progress-bar"
else: "-sv"
llvm-svn: 118776
2010-11-11 04:09:35 +00:00
NAKAMURA Takumi
abee1c5f85
CMake: Build utils/KillTheDoctor only on MSVC for now.
...
Mingw does not have the header <dbghelp.h>.
Thanks to Daniel Newton, testing it on mingw.
llvm-svn: 117352
2010-10-26 05:08:27 +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
Oscar Fuentes
e596a172e3
Added basic support for CPack.
...
llvm-svn: 116516
2010-10-14 21:11:51 +00:00
Francois Pichet
6bf8a81c52
Disable warning C4267 for MSVC. Otherwise it generate literally thousands of warnings when targeting x64. The warning occurs because int is 32 bit but size_t is 64 bit on Win64.
...
llvm-svn: 116274
2010-10-12 00:01:36 +00:00
Michael J. Spencer
39ce18d108
Add KillTheDoctor.
...
llvm-svn: 116216
2010-10-11 19:55:38 +00:00
Chris Lattner
c9709f154d
Per discussion with Sanjiv, remove the PIC16 target from mainline. When/if
...
it comes back, it will be largely a rewrite, so keeping the old codebase
in tree isn't helping anyone.
llvm-svn: 116190
2010-10-11 05:44:40 +00:00
Oscar Fuentes
e985061bd1
Handle InstPrinter's on the CMake build.
...
llvm-svn: 115402
2010-10-02 02:38:42 +00:00
Nick Lewycky
7103df7a51
Revert patches r115363 r115367 r115391 due to build breakage:
...
llvm[2]: Updated LibDeps.txt because dependencies changed
llvm[2]: Checking for cyclic dependencies between LLVM libraries.
find-cycles.pl: Circular dependency between *.a files:
find-cycles.pl: libLLVMMSP430AsmPrinter.a libLLVMMSP430CodeGen.a
llvm-svn: 115393
2010-10-02 01:06:42 +00:00
Jim Grosbach
469a7a27d9
Update CMake files for recent AsmPrinter->InstPrinter changes. Can someone who
...
is more familiar with CMake please review?
llvm-svn: 115391
2010-10-02 00:39:56 +00:00
Oscar Fuentes
748691cf20
Added library LLVMPIC16passes to CMake build.
...
llvm-svn: 114952
2010-09-28 14:02:45 +00:00
Oscar Fuentes
3c58c66484
Added PTX target to the CMake build.
...
llvm-svn: 114951
2010-09-28 14:02:36 +00:00