61aed87a49 
								
							 
						 
						
							
							
								
								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  
				
					
						
							
							
								 
						
							
								638aaecc4d 
								
							 
						 
						
							
							
								
								Honor LLVM_BUILD_RUNTIME.  
							
							... 
							
							
							
							llvm-svn: 130199 
							
						 
						
							2011-04-26 14:55:27 +00:00  
				
					
						
							
							
								 
						
							
								d8a6dd6c99 
								
							 
						 
						
							
							
								
								Rename LLVMConfig.cmake to LLVM-Config.cmake. The *Config.cmake naming  
							
							... 
							
							
							
							scheme is used by the functionality related to find_package.
llvm-svn: 128889 
							
						 
						
							2011-04-05 17:02:48 +00:00  
				
					
						
							
							
								 
						
							
								978e5284fa 
								
							 
						 
						
							
							
								
								Fixed the build of Clang's unit tests on MinGW. Also removed some  
							
							... 
							
							
							
							unnecesary conditionals and introduced a new convenience function.
The problem was that the list of libraries for Clang's unit tests was
<clang libraries> <system libraries> <llvm libraries>. As the llvm
libraries references symbols defined on the system libraries, those
were reported as undefined.
llvm-svn: 128484 
							
						 
						
							2011-03-29 20:51:08 +00:00  
				
					
						
							
							
								 
						
							
								623b5dae21 
								
							 
						 
						
							
							
								
								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  
				
					
						
							
							
								 
						
							
								cc48b9ac0f 
								
							 
						 
						
							
							
								
								Whe we build a shared library, add its list of used libraries to the  
							
							... 
							
							
							
							link command.
Fixed a pair of IF expressions too.
llvm-svn: 127546 
							
						 
						
							2011-03-12 16:48:54 +00:00  
				
					
						
							
							
								 
						
							
								ab0465020b 
								
							 
						 
						
							
							
								
								CMake: remove unnecessary variable.  
							
							... 
							
							
							
							llvm-svn: 126224 
							
						 
						
							2011-02-22 15:40:20 +00:00  
				
					
						
							
							
								 
						
							
								3145e923c1 
								
							 
						 
						
							
							
								
								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  
				
					
						
							
							
								 
						
							
								ba1186c23e 
								
							 
						 
						
							
							
								
								Use explicit add_subdirectory's for LLVM target sublibraries instead  
							
							... 
							
							
							
							of testing for its presence at cmake time.
This way the build automatically regenerates the makefiles when a svn
update brings in a new sublibrary.
llvm-svn: 126068 
							
						 
						
							2011-02-20 02:55:27 +00:00  
				
					
						
							
							
								 
						
							
								5ed962656c 
								
							 
						 
						
							
							
								
								Move library stuff out of the toplevel CMakeLists.txt file.  
							
							... 
							
							
							
							llvm-svn: 125968 
							
						 
						
							2011-02-18 22:06:14 +00:00  
				
					
						
							
							
								 
						
							
								9f2b3842a3 
								
							 
						 
						
							
							
								
								Fixes file extension for loadable modules on OS X.  
							
							... 
							
							
							
							Patch by Wesley Peck!
llvm-svn: 122395 
							
						 
						
							2010-12-22 08:30:17 +00:00  
				
					
						
							
							
								 
						
							
								a8c1c3fe22 
								
							 
						 
						
							
							
								
								Add dependency to "make check".  
							
							... 
							
							
							
							cmake/modules/AddLLVM.cmake: Add empty "phony" target in add_llvm_loadable_module() even if loadable module were not supported.
llvm-svn: 121455 
							
						 
						
							2010-12-10 02:15:36 +00:00  
				
					
						
							
							
								 
						
							
								ff11a23ef3 
								
							 
						 
						
							
							
								
								Loadable modules are not supported on Cygwin. PR 6655.  
							
							... 
							
							
							
							llvm-svn: 117130 
							
						 
						
							2010-10-22 19:03:24 +00:00  
				
					
						
							
							
								 
						
							
								ffe32e1137 
								
							 
						 
						
							
							
								
								When building shared libraries, link to required system libraries.  
							
							... 
							
							
							
							PR 8375
llvm-svn: 116479 
							
						 
						
							2010-10-14 15:54:41 +00:00  
				
					
						
							
							
								 
						
							
								46d8a93005 
								
							 
						 
						
							
							
								
								Reverting "CMake: Don't include tools, unittets, or examples as  
							
							... 
							
							
							
							available targets unless LLVM_INCLUDE_X is ON. LLVM_BUILD_X implies
LLVM_INCLUDE_X"
It breaks the configuration phase when cmake is invoked without
parameters, it is too complex for the purpose and introduces an
incovenience for the user (as both LLVM_BUILD_X and LLVM_INCLUDE_X
must set to OFF for not including X on the build)
llvm-svn: 114795 
							
						 
						
							2010-09-25 20:25:25 +00:00  
				
					
						
							
							
								 
						
							
								e35a611aa5 
								
							 
						 
						
							
							
								
								CMake: Don't include tools, unittets, or examples as available targets  
							
							... 
							
							
							
							unless LLVM_INCLUDE_X is ON. LLVM_BUILD_X implies LLVM_INCLUDE_X
llvm-svn: 114747 
							
						 
						
							2010-09-24 19:10:51 +00:00  
				
					
						
							
							
								 
						
							
								93c9b2ea93 
								
							 
						 
						
							
							
								
								Revert "CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally."  
							
							... 
							
							
							
							This reverts commit r113632
Conflicts:
	cmake/modules/AddLLVM.cmake
llvm-svn: 113819 
							
						 
						
							2010-09-13 23:59:48 +00:00  
				
					
						
							
							
								 
						
							
								7c3a5ee996 
								
							 
						 
						
							
							
								
								CMake: Fix mingw32 build.  
							
							... 
							
							
							
							llvm-svn: 113676 
							
						 
						
							2010-09-11 02:13:39 +00:00  
				
					
						
							
							
								 
						
							
								dc38d36ccb 
								
							 
						 
						
							
							
								
								CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally.  
							
							... 
							
							
							
							llvm-svn: 113632 
							
						 
						
							2010-09-10 21:14:25 +00:00  
				
					
						
							
							
								 
						
							
								dea579fde3 
								
							 
						 
						
							
							
								
								CMake: Do not try to install a target before it is defined.  
							
							... 
							
							
							
							llvm-svn: 89636 
							
						 
						
							2009-11-23 00:32:42 +00:00  
				
					
						
							
							
								 
						
							
								0c2443a28d 
								
							 
						 
						
							
							
								
								CMake: generate targets for tools and examples even when  
							
							... 
							
							
							
							LLVM_BUILD_TOOLS or LLVM_BUILD_EXAMPLES are OFF.
llvm-svn: 89635 
							
						 
						
							2009-11-23 00:21:43 +00:00  
				
					
						
							
							
								 
						
							
								66df54f92c 
								
							 
						 
						
							
							
								
								CMake: Add Darwin-specific linker flags for building loadable modules  
							
							... 
							
							
							
							llvm-svn: 86684 
							
						 
						
							2009-11-10 15:30:33 +00:00  
				
					
						
							
							
								 
						
							
								bbc1067001 
								
							 
						 
						
							
							
								
								CMake: Support for building llvm loadable modules.  
							
							... 
							
							
							
							llvm-svn: 86656 
							
						 
						
							2009-11-10 02:45:37 +00:00  
				
					
						
							
							
								 
						
							
								171a7d6823 
								
							 
						 
						
							
							
								
								Fix the MSVC build again.  
							
							... 
							
							
							
							llvm-svn: 79186 
							
						 
						
							2009-08-16 09:44:27 +00:00  
				
					
						
							
							
								 
						
							
								9496a6d7ef 
								
							 
						 
						
							
							
								
								CMake: Hopefully this will fix the build on VS. I can't replicate the  
							
							... 
							
							
							
							failure with VS 9.0, nmake and cmake 2.6.4. The buildbot output does
not show the patch level of cmake, it just says 2.6.
Sadly, parallel builds are broken due to recent changes on LLVM Target
libraries and its auxiliaries (TargetInfo, AsmPrinter, AsmParser). I
have a patch for stablishing the correct dependencies, but cmake is
buggy and generates makefiles that can't handle them.
llvm-svn: 79180 
							
						 
						
							2009-08-16 07:44:02 +00:00  
				
					
						
							
							
								 
						
							
								8160d28712 
								
							 
						 
						
							
							
								
								CMake: Revert r79144. It reverted a change necessary for correct  
							
							... 
							
							
							
							parallel builds.
llvm-svn: 79177 
							
						 
						
							2009-08-16 05:16:43 +00:00  
				
					
						
							
							
								 
						
							
								42f3b9d02d 
								
							 
						 
						
							
							
								
								Revert 78996. It was breaking MSVC builds.  
							
							... 
							
							
							
							llvm-svn: 79144 
							
						 
						
							2009-08-15 21:57:01 +00:00  
				
					
						
							
							
								 
						
							
								5717a72863 
								
							 
						 
						
							
							
								
								CMake: Builds main LLVM Target library before its sublibraries. This  
							
							... 
							
							
							
							way we ensure that tablegenned files exist before they are #include'd
by the LLVM Target sublibraries. Required for parallel builds.
llvm-svn: 78996 
							
						 
						
							2009-08-14 05:17:24 +00:00  
				
					
						
							
							
								 
						
							
								3fca0e811c 
								
							 
						 
						
							
							
								
								CMake: Use LLVM_COMMON_DEPENDS on add_llvm_executable.  
							
							... 
							
							
							
							llvm-svn: 78990 
							
						 
						
							2009-08-14 04:38:57 +00:00  
				
					
						
							
							
								 
						
							
								a88916d94f 
								
							 
						 
						
							
							
								
								CMake: Rely on llvm_config again for obtaining the list of required  
							
							... 
							
							
							
							libraries for an executable.
Now LLVMConfig uses a new system for sorting library dependencies, as
the list of dependent libraries for each entry of FinalLibDeps.txt no
longer is topologically sorted.
llvm-svn: 78787 
							
						 
						
							2009-08-12 04:05:26 +00:00  
				
					
						
							
							
								 
						
							
								f42a6ab6b8 
								
							 
						 
						
							
							
								
								Reinstate target dependencies on Table_gen targets in CMake  
							
							... 
							
							
							
							llvm-svn: 74003 
							
						 
						
							2009-06-23 21:05:21 +00:00  
				
					
						
							
							
								 
						
							
								e324ceeced 
								
							 
						 
						
							
							
								
								CMake: remove support for llvm-config-generated dependencies in the build  
							
							... 
							
							
							
							llvm-svn: 73979 
							
						 
						
							2009-06-23 18:30:17 +00:00  
				
					
						
							
							
								 
						
							
								881af58933 
								
							 
						 
						
							
							
								
								Eliminate some unused code in CMa'e add_llvm_target. No functionality change.  
							
							... 
							
							
							
							llvm-svn: 73970 
							
						 
						
							2009-06-23 17:58:51 +00:00  
				
					
						
							
							
								 
						
							
								85fedbe081 
								
							 
						 
						
							
							
								
								Eliminate object-relinking support from CMake. Fixes PR 4429 and  
							
							... 
							
							
							
							cleans up the CMake-based build system a bit. Started by a patch from
Xerxes Rånby.
llvm-svn: 73969 
							
						 
						
							2009-06-23 17:57:35 +00:00  
				
					
						
							
							
								 
						
							
								46fed3b475 
								
							 
						 
						
							
							
								
								CMake: New variable LLVM_LIBDIR_SUFFIX.  
							
							... 
							
							
							
							Patch by Ingmar Vanhassel!
llvm-svn: 73216 
							
						 
						
							2009-06-12 02:49:53 +00:00  
				
					
						
							
							
								 
						
							
								5c273ce20e 
								
							 
						 
						
							
							
								
								CMake: Use explicit dependencies for Xcode (as well as MSVC), to make  
							
							... 
							
							
							
							the CMake-generated Xcode project build properly.
llvm-svn: 72883 
							
						 
						
							2009-06-04 19:53:37 +00:00  
				
					
						
							
							
								 
						
							
								10a71da05a 
								
							 
						 
						
							
							
								
								CMake: Set LIBS on llvm-config so we can query the system libraries  
							
							... 
							
							
							
							used by CMake with --ldflags.
llvm-svn: 72470 
							
						 
						
							2009-05-27 15:49:33 +00:00  
				
					
						
							
							
								 
						
							
								eeac588471 
								
							 
						 
						
							
							
								
								CMake: Use libdl only when available. Fixes build on FreeBSD.  
							
							... 
							
							
							
							llvm-svn: 72311 
							
						 
						
							2009-05-23 02:37:24 +00:00  
				
					
						
							
							
								 
						
							
								58e257de2e 
								
							 
						 
						
							
							
								
								CMake: Use pthread library when requested and available.  
							
							... 
							
							
							
							llvm-svn: 71116 
							
						 
						
							2009-05-06 20:42:04 +00:00  
				
					
						
							
							
								 
						
							
								9ccf574ea0 
								
							 
						 
						
							
							
								
								Fix a link issue I ran into trying compiling LLVM on MinGW with CMake.  
							
							... 
							
							
							
							Hopefully this doesn't break anyone else's build... it shouldn't unless 
the MinGW variable means something other than compiling with MinGW.
llvm-svn: 60273 
							
						 
						
							2008-11-30 02:42:05 +00:00  
				
					
						
							
							
								 
						
							
								2c10b22b62 
								
							 
						 
						
							
							
								
								CMake: Adds header and TableGen files to Visual Studio solution. A new  
							
							... 
							
							
							
							dummy library, `llvm_headers_do_not_build', is created for containing
all header and TableGen files under include/llvm.
llvm-svn: 59346 
							
						 
						
							2008-11-15 02:08:08 +00:00  
				
					
						
							
							
								 
						
							
								751ea9d957 
								
							 
						 
						
							
							
								
								CMake: Fixed dependencies of .cpp source files on .td and tablegenned  
							
							... 
							
							
							
							files.
llvm-svn: 59325 
							
						 
						
							2008-11-14 22:06:14 +00:00  
				
					
						
							
							
								 
						
							
								90cf22e013 
								
							 
						 
						
							
							
								
								CMake: Removed unnecessary library path setting that was breaking the  
							
							... 
							
							
							
							build on OS X.
Fix by Jjgod Jiang!
llvm-svn: 59048 
							
						 
						
							2008-11-11 16:56:52 +00:00  
				
					
						
							
							
								 
						
							
								20baf2fc3c 
								
							 
						 
						
							
							
								
								CMake: Support for LLVM_USED_LIBS variable, which is the cmake  
							
							... 
							
							
							
							counterpart of USED_LIBS.
llvm-svn: 58178 
							
						 
						
							2008-10-26 00:51:05 +00:00  
				
					
						
							
							
								 
						
							
								64c996271e 
								
							 
						 
						
							
							
								
								CMake: `make install' for libraries, executables and header files.  
							
							... 
							
							
							
							llvm-svn: 57945 
							
						 
						
							2008-10-22 02:56:07 +00:00  
				
					
						
							
							
								 
						
							
								cdc95498f5 
								
							 
						 
						
							
							
								
								CMake: Builds all targets.  
							
							... 
							
							
							
							llvm-svn: 56641 
							
						 
						
							2008-09-26 04:40:32 +00:00  
				
					
						
							
							
								 
						
							
								8807bddf08 
								
							 
						 
						
							
							
								
								CMake build system: support for parallel builds.  
							
							... 
							
							
							
							llvm-svn: 56453 
							
						 
						
							2008-09-22 18:21:51 +00:00  
				
					
						
							
							
								 
						
							
								a229b3c9a7 
								
							 
						 
						
							
							
								
								Initial support for the CMake build system.  
							
							... 
							
							
							
							llvm-svn: 56419 
							
						 
						
							2008-09-22 01:08:49 +00:00