Граф коммитов

24 Коммитов

Автор SHA1 Сообщение Дата
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