NAKAMURA Takumi
0e836b117f
CMake: [PR9321] Don't install include/clang/**/*.td.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126633 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-28 05:21:27 +00:00
Douglas Gregor
8435bf9375
CMake: add version information into the clang executable and libclang
...
shared library.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126502 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-25 19:24:02 +00:00
Douglas Gregor
670d6ed9f0
LLVM_INCLUDE_TESTS applies to unit tests, not the normal Clang tests
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126458 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-25 00:32:30 +00:00
Douglas Gregor
fd681570a2
Don't include Clang's unit tests if LLVM's unit tests aren't being built
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126455 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-25 00:12:04 +00:00
NAKAMURA Takumi
30decb8488
CMake: Eliminate duplicate -D__STDC_LIMIT_MACROS and -D__STDC_CONSTANT_MACROS. llvm/cmake/modules/HandleLLVMOptions.cmake defines them.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126105 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-21 03:19:49 +00:00
Oscar Fuentes
a3f787c32b
Put targets on folders, if the IDE supports the feature.
...
Requires CMake 2.8.3 or newer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126094 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-20 22:06:44 +00:00
Oscar Fuentes
c8da1ecaf5
New function for tablegenning: clang_tablegen.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126093 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-20 22:06:32 +00:00
Daniel Dunbar
299696c8c9
More correct fix for CMake breakage I was seeing, my buildbots use
...
LLVM_INCLUDE_TESTS:=OFF, which may no longer be necessary for all I know.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125985 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-18 22:55:32 +00:00
NAKAMURA Takumi
792f975feb
CMake: Tweak for Visual Studio 10 quirk at clang-standalone build.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125647 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-16 03:07:15 +00:00
Jeffrey Yasskin
718b01d077
Add CMake support to the clang unittests.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125561 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-15 07:54:28 +00:00
Oscar Fuentes
b641f08cbe
Add current binary and source directories to the header search list
...
for all compiler invocations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125514 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-14 20:14:11 +00:00
Ted Kremenek
b26bd7426d
Add hack to CMakeLists.txt so that StaticAnalyzer libraries find their corresponding headers.
...
This is a hack because we really should only search in the 'include/clang/StaticAnalyzer' directory
if we are in 'lib/StaticAnalyzer'. My CMake knowledge is limited, so I appeal to anyone with
more expertise.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125252 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-10 01:03:09 +00:00
Oscar Fuentes
2100fe952a
Moved here from LLVM Clang's configuration options and related macros.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124825 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-03 22:48:20 +00:00
Oscar Fuentes
67410b34bc
Optionally, Clang now builds using LLVM as an external library.
...
The user sets the variable CLANG_PATH_TO_LLVM_BUILD pointing to a LLVM
build directory or to a directory where LLVM was installed. When using
a non-installed LLVM build, it is necessary to set
CLANG_PATH_TO_LLVM_SOURCE as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124817 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-03 20:57:53 +00:00
Oscar Fuentes
9917401b32
Use some of the llvm cmake infraestructure. This takes care of
...
disabling rtti and exceptions where requested. Remove some unnecessary
code too.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122750 91177308-0d34-0410-b5e6-96231b3b80d8
2011-01-03 17:00:02 +00:00
Michael J. Spencer
48263bae23
CMake: Add runtime dir.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121957 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-16 03:28:42 +00:00
Oscar Fuentes
827c573881
Copied some flags from the Makefile build to the list of GCC flags.
...
This removes a lot of warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116545 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-15 00:16:22 +00:00
Michael J. Spencer
560a921b85
Revert "CMake: Update to use standard CMake dependency tracking facilities instead"
...
This reverts commit r113631
Conflicts:
CMakeLists.txt
lib/CodeGen/CMakeLists.txt
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113817 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-13 23:54:41 +00:00
Michael J. Spencer
28709c14ac
CMake: Fix mingw32 build.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113677 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-11 02:13:48 +00:00
Michael J. Spencer
5a7f34958c
CMake: Update to use standard CMake dependency tracking facilities instead
...
of whatever we were using before...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113631 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-10 21:13:16 +00:00
Daniel Dunbar
c4b8e923a1
clang: Derive version name from LLVM unless specified explicitly. This means
...
clang is now clang 2.8.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106914 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-25 23:34:47 +00:00
Daniel Dunbar
a510767963
build: Add a generated Version.inc file instead of duplicating information.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106863 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-25 17:33:46 +00:00
Douglas Gregor
eb5dc498da
Teach the PrintFunctionNames example to be a proper module, so that
...
Clang can load it as a plugin. Original fix by Troy D. Straszheim,
which I extended with Darwin support. Fixes PR6801.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105630 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-08 19:23:49 +00:00
Chris Lattner
d7d5bb1e0c
exclude cmake build directories from being installed
...
with "make install". Patch by Michael Forney!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102299 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-25 04:59:35 +00:00
Chandler Carruth
63e9c0ddf1
Prevent accidental in-source builds with CMake, and detect when there are
...
generated files from a previous in-source builds.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101665 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-17 20:12:02 +00:00
Kovarththanan Rajaratnam
ec700a6a30
Include *.inc in install target
...
Fixes PR6755.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100105 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-01 14:24:41 +00:00
Daniel Dunbar
45088e2afd
Add optional CMake build for Clang examples, patch by Kovarththanan Rajaratnam.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89078 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-17 09:32:51 +00:00
Oscar Fuentes
82cac29c6e
Rather than excluding quite some things, and still installing
...
CMakeLists.txt, Makefiles, ... it's better to whitelist what we really
want to install.
Patch by Ingmar Vanhassel!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85283 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-27 19:59:34 +00:00
Oscar Fuentes
bfb06ea8c1
CMake: Append LLVM_LIBDIR_SUFFIX to library destination.
...
Based on a patch by Ingmar Vanhassel.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85276 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-27 19:42:21 +00:00
Benjamin Kramer
bd785546c9
CMake mingw build fixes.
...
- llvm's libs must be linked after clang's
- libLLVMSystem depends on psapi on win32 (get_system_libs has it)
- CIndex builds successfully on mingw now
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83773 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-11 12:22:00 +00:00
Douglas Gregor
ac47bc76fe
CMake build support for libCIndex and c-index-test. The indexing tests
...
are now running properly from within CMake.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82755 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-25 06:35:15 +00:00
Douglas Gregor
9df3fafe8b
Make the GCC warning flags passed by CMake the same as the warning flags passed in the make build
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82221 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-18 14:47:57 +00:00
Daniel Dunbar
91ee77a8c1
Add CLANG_{SOURCE,BINARY}_DIR cmake variables.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82098 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-17 00:07:10 +00:00
Douglas Gregor
34d9ffaafd
The CMake build system now derives the Clang version number from VER.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82085 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-16 21:59:05 +00:00
Mike Stump
f918b8f934
Collapse more clang version numbers down into fewer places.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81983 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-16 01:26:05 +00:00
Douglas Gregor
291fbde2da
Update Clang version for CMake
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81938 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-15 22:30:13 +00:00
Douglas Gregor
7f7b74888e
CMake: Improve installation of Clang
...
- Install clang-cc into libexec
- Install headers into lib/clang/<version>/include
- Don't install other clang-based tools (clang-wpa, clang-index, etc.)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79827 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-23 05:28:29 +00:00
Douglas Gregor
f5216f2fa1
Make sure that .td and .def files get into the list of headers in a CMake build, for use in Xcode and Visual Studio
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73623 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-17 18:31:02 +00:00
Oscar Fuentes
755f3dff8a
CMake: New variable LLVM_LIBDIR_SUFFIX.
...
Patch by Ingmar Vanhassel!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73217 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-12 02:54:12 +00:00
Douglas Gregor
eb357b67b4
First cut at regression testing Clang with CMake
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72945 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-05 16:00:31 +00:00
Ted Kremenek
bf5de3faf3
CMake: Also include header files in target when the generator is 'XCode'.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67703 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-25 20:34:07 +00:00
Daniel Dunbar
073777f3ab
Move <root>/Driver into <root>/tools/clang-cc.
...
Again, I tried to update cmake but it is untested.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67605 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-24 03:00:12 +00:00
Daniel Dunbar
cbcd98bdb9
Add CMake files for tools/driver; I am just guessing here, can someone test/fix?
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67604 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-24 02:52:57 +00:00
Douglas Gregor
a393e9eedc
Build system changes to use TableGen to generate the various
...
diagnostics. This builds on the patch that Sebastian committed and
then revert. Major differences are:
- We don't remove or use the current ".def" files. Instead, for now,
we just make sure that we're building the ".inc" files.
- Fixed CMake makefiles to run TableGen and build the ".inc" files
when needed. Tested with both the Xcode and Makefile generators
provided by CMake, so it should be solid.
- Fixed normal makefiles to handle out-of-source builds that involve
the ".inc" files.
I'll send a separate patch to the list with Sebastian's changes that
eliminate the use of the .def files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67058 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-16 23:06:59 +00:00
Sebastian Redl
e89b6b272f
Revert the switch to the tablegen diags. It fails for seperate objdir builds and cmake builds, and I have no clue what to do about it. Revisit this after someone with a clue about the build systems has looked at it.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67009 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-14 15:58:54 +00:00
Sebastian Redl
3801d71fbe
Switch diagnostics from .def to tablegen files. Please validate the Windows build.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67007 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-14 12:00:12 +00:00
Cedric Venet
1c212a08f6
Add /Za to all MSVC build of a clang libraries.
...
This allow to use the new move emulation for smart pointer by disabling language extension.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60979 91177308-0d34-0410-b5e6-96231b3b80d8
2008-12-13 11:00:04 +00:00
Chris Lattner
bc6ec759af
"a patch telling cmake to install clang headers in the target
...
install directory"
Patch by Lukasz Janyst!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59059 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-11 18:39:10 +00:00
Cedric Venet
fe2f808a51
Add header files to CMake build solution. It use globing so it doesn't need to be manually maintained, but it won't automatically detect a new header. I think this is a good compromise for the header files, since there presence in the solution is just an help for the user. Moreover, a new header is often introduced with a new cpp source file which need a makefile change, which will regenerate the solution and detect the new header.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58566 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-02 16:28:53 +00:00
Oscar Fuentes
d2f4e5ea6e
CMake: Builds and installs clang binary and libs (no docs yet). It
...
must be under the `tools' subdirectory of the LLVM *source* tree.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58180 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-26 00:56:18 +00:00