Oscar Fuentes
f752d5bbae
CMake: add support for CLANG_VENDOR. PR9966.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131733 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-20 15:57:59 +00:00
Oscar Fuentes
c5cd252aba
Handle gcc-compatible compilers (such as clang) the same way we handle
...
gcc.
Fixes PR9886.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131182 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-11 13:53:30 +00:00
Oscar Fuentes
5ec8a4df47
Reflect rename on LLVM cmake file.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129246 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-10 16:17:31 +00:00
Oscar Fuentes
fb767c8c37
CMake: removed some unnecesary conditionals from add_clang_library.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128483 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-29 20:51:00 +00:00
Oscar Fuentes
48e36464ee
Removed workaround for unspecified build problem on MinGW.
...
Tested that MinGW/MSYS builds fine without that.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128341 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-26 16:11:33 +00:00
Oscar Fuentes
617508fb9e
Fix some issues with include directories: remove a duplicate and put
...
Clang binary and source directories first (on that order).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127822 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-17 19:03:04 +00:00
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