summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* use DEFAULT_SYSROOTSebastian Pop2012-04-161-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154792 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake: install libclang.dll to $CMAKE_INSTALL_PREFIX/bin.NAKAMURA Takumi2012-02-251-1/+2
| | | | | | Patch by Joe Groff. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151448 91177308-0d34-0410-b5e6-96231b3b80d8
* include clang's config.h unconditionally (v2)Dylan Noblesmith2012-02-141-1/+1
| | | | | | | | | | | | And remove HAVE_CLANG_CONFIG_H, now that the header is generated in the autoconf build, too. Reverts r149571/restores r149504, now that config.h is generated correctly by LLVM's configure in all build configurations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150487 91177308-0d34-0410-b5e6-96231b3b80d8
* back out r149504Dylan Noblesmith2012-02-021-1/+1
| | | | | | | | Too many weird build failures. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149571 91177308-0d34-0410-b5e6-96231b3b80d8
* cmake: don't install config.h (v2)Dylan Noblesmith2012-02-011-0/+1
| | | | | | | | | | This header is private and shouldn't be used by clients. (This reverts r149540, reinstating r149496. False alarm.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149550 91177308-0d34-0410-b5e6-96231b3b80d8
* cmake: revert r149496Dylan Noblesmith2012-02-011-1/+0
| | | | | | | | It *looks* like this caused PR11903, somehow. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149540 91177308-0d34-0410-b5e6-96231b3b80d8
* include clang's config.h unconditionallyDylan Noblesmith2012-02-011-1/+1
| | | | | | | | | | | | | And remove HAVE_CLANG_CONFIG_H, now that the header is generated in the autoconf build, too. (clang r149497 / llvm r149498) Also include the config.h header after all other headers, per the LLVM coding standards. It also turns out WindowsToolChain.cpp wasn't using the config header at all, so that include's just deleted now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149504 91177308-0d34-0410-b5e6-96231b3b80d8
* cmake: don't install config.hDylan Noblesmith2012-02-011-0/+1
| | | | | | This header is private and shouldn't be used by clients. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149496 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust CLANG_BUILD_EXAMPLES to mean whether the examples are builtPeter Collingbourne2012-01-261-4/+2
| | | | | | by default, rather than whether they may be built at all. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149037 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the Clang tblgen backends to Clang, and flip the switch to causePeter Collingbourne2011-10-061-1/+2
| | | | | | the build systems to use clang-tblgen. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141291 91177308-0d34-0410-b5e6-96231b3b80d8
* Clang-side build system infrastructure for multiple tblgens.Peter Collingbourne2011-10-061-7/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141267 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake: Define ${LLVM_TABLEGEN_EXE} with explicit ${CMAKE_EXECUTABLE_SUFFIX} ↵NAKAMURA Takumi2011-09-231-2/+2
| | | | | | | | on standalone build. Or build might fail with NMake. Thanks to Nicolas Le Gland! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140360 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix cmake for r136702 (at least for the most part). Chandler has been kind Chad Rosier2011-08-021-0/+3
| | | | | | | | enough to offer to investigate the underlying issue. Thanks to Doug for his assistance as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136719 91177308-0d34-0410-b5e6-96231b3b80d8
* Temporarily revert parts of r136702 to make cmake builds happy.Chad Rosier2011-08-021-3/+0
| | | | | | | Someone with more cmake experience want to throw me a bone? :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136709 91177308-0d34-0410-b5e6-96231b3b80d8
* When the compiler crashes, the compiler driver now produces diagnostic Chad Rosier2011-08-021-0/+3
| | | | | | | | | | information including the fully preprocessed source file(s) and command line arguments. The developer is asked to attach this diagnostic information to a bug report. rdar://9575623 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136702 91177308-0d34-0410-b5e6-96231b3b80d8
* Tweak the CMake build so that building a project just containing ClangDouglas Gregor2011-07-141-2/+11
| | | | | | | | (and linking to an already-build LLVM) works with Xcode. The resulting Xcode project for Clang is quite a bit smaller and builds/loads faster. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135216 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert "hack in my new variables for GCC"Chandler Carruth2011-06-081-12/+0
| | | | | | Very sorry for the accidental commit of WIP code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132745 91177308-0d34-0410-b5e6-96231b3b80d8
* hack in my new variables for GCCChandler Carruth2011-06-081-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132743 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake: add support for CLANG_VENDOR. PR9966.Oscar Fuentes2011-05-201-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131733 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle gcc-compatible compilers (such as clang) the same way we handleOscar Fuentes2011-05-111-1/+1
| | | | | | | | gcc. Fixes PR9886. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131182 91177308-0d34-0410-b5e6-96231b3b80d8
* Reflect rename on LLVM cmake file.Oscar Fuentes2011-04-101-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129246 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake: removed some unnecesary conditionals from add_clang_library.Oscar Fuentes2011-03-291-15/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128483 91177308-0d34-0410-b5e6-96231b3b80d8
* Removed workaround for unspecified build problem on MinGW.Oscar Fuentes2011-03-261-5/+3
| | | | | | 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
* Fix some issues with include directories: remove a duplicate and putOscar Fuentes2011-03-171-5/+2
| | | | | | 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
* CMake: [PR9321] Don't install include/clang/**/*.td.NAKAMURA Takumi2011-02-281-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126633 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake: add version information into the clang executable and libclangDouglas Gregor2011-02-251-0/+10
| | | | | | | shared library. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126502 91177308-0d34-0410-b5e6-96231b3b80d8
* LLVM_INCLUDE_TESTS applies to unit tests, not the normal Clang testsDouglas Gregor2011-02-251-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126458 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't include Clang's unit tests if LLVM's unit tests aren't being builtDouglas Gregor2011-02-251-5/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126455 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake: Eliminate duplicate -D__STDC_LIMIT_MACROS and ↵NAKAMURA Takumi2011-02-211-3/+0
| | | | | | -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
* Put targets on folders, if the IDE supports the feature.Oscar Fuentes2011-02-201-0/+3
| | | | | | Requires CMake 2.8.3 or newer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126094 91177308-0d34-0410-b5e6-96231b3b80d8
* New function for tablegenning: clang_tablegen.Oscar Fuentes2011-02-201-0/+30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126093 91177308-0d34-0410-b5e6-96231b3b80d8
* More correct fix for CMake breakage I was seeing, my buildbots useDaniel Dunbar2011-02-181-0/+2
| | | | | | 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
* CMake: Tweak for Visual Studio 10 quirk at clang-standalone build.NAKAMURA Takumi2011-02-161-0/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125647 91177308-0d34-0410-b5e6-96231b3b80d8
* Add CMake support to the clang unittests.Jeffrey Yasskin2011-02-151-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125561 91177308-0d34-0410-b5e6-96231b3b80d8
* Add current binary and source directories to the header search listOscar Fuentes2011-02-141-0/+1
| | | | | | for all compiler invocations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125514 91177308-0d34-0410-b5e6-96231b3b80d8
* Add hack to CMakeLists.txt so that StaticAnalyzer libraries find their ↵Ted Kremenek2011-02-101-0/+3
| | | | | | | | | | 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
* Moved here from LLVM Clang's configuration options and related macros.Oscar Fuentes2011-02-031-1/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124825 91177308-0d34-0410-b5e6-96231b3b80d8
* Optionally, Clang now builds using LLVM as an external library.Oscar Fuentes2011-02-031-1/+55
| | | | | | | | | 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
* Use some of the llvm cmake infraestructure. This takes care ofOscar Fuentes2011-01-031-11/+2
| | | | | | | 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
* CMake: Add runtime dir.Michael J. Spencer2010-12-161-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121957 91177308-0d34-0410-b5e6-96231b3b80d8
* Copied some flags from the Makefile build to the list of GCC flags.Oscar Fuentes2010-10-151-1/+1
| | | | | | This removes a lot of warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116545 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert "CMake: Update to use standard CMake dependency tracking facilities ↵Michael J. Spencer2010-09-131-1/+0
| | | | | | | | | | | | | 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
* CMake: Fix mingw32 build.Michael J. Spencer2010-09-111-4/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113677 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake: Update to use standard CMake dependency tracking facilities insteadMichael J. Spencer2010-09-101-2/+6
| | | | | | of whatever we were using before... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113631 91177308-0d34-0410-b5e6-96231b3b80d8
* clang: Derive version name from LLVM unless specified explicitly. This meansDaniel Dunbar2010-06-251-8/+2
| | | | | | clang is now clang 2.8. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106914 91177308-0d34-0410-b5e6-96231b3b80d8
* build: Add a generated Version.inc file instead of duplicating information.Daniel Dunbar2010-06-251-0/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106863 91177308-0d34-0410-b5e6-96231b3b80d8
* Teach the PrintFunctionNames example to be a proper module, so thatDouglas Gregor2010-06-081-1/+7
| | | | | | | | 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
* exclude cmake build directories from being installedChris Lattner2010-04-251-0/+1
| | | | | | | | with "make install". Patch by Michael Forney! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102299 91177308-0d34-0410-b5e6-96231b3b80d8
* Prevent accidental in-source builds with CMake, and detect when there areChandler Carruth2010-04-171-0/+20
| | | | | | | 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
* Include *.inc in install targetKovarththanan Rajaratnam2010-04-011-0/+6
| | | | | | Fixes PR6755. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100105 91177308-0d34-0410-b5e6-96231b3b80d8