summaryrefslogtreecommitdiffstats
path: root/llvm/cmake
Commit message (Collapse)AuthorAgeFilesLines
...
* lit support for REQUIRES: asserts.Andrew Trick2011-06-221-5/+0
| | | | | | | | | | Take #2. Don't piggyback on the existing config.build_mode. Instead, define a new lit feature for each build feature we need (currently just "asserts"). Teach both autoconf'd and cmake'd Makefiles to define this feature within test/lit.site.cfg. This doesn't require any lit harness changes and should be more robust across build systems. llvm-svn: 133664
* Added LLVM_BUILD_MODE to cmake so that lit supports tests with REQUIRES: ↵Andrew Trick2011-06-161-0/+5
| | | | | | {buildmode}. llvm-svn: 133205
* Fix cmake dependencies.Rafael Espindola2011-05-241-1/+1
| | | | llvm-svn: 131943
* Another try at fixing cmake.Rafael Espindola2011-05-191-1/+1
| | | | llvm-svn: 131608
* Revert my previous patch. The cmake build had already been fixed.Rafael Espindola2011-05-191-1/+1
| | | | llvm-svn: 131606
* Fix the cmake build.Rafael Espindola2011-05-181-1/+1
| | | | llvm-svn: 131602
* Handle gcc-compatible compilers (such as clang) the same way we handleOscar Fuentes2011-05-112-3/+9
| | | | | | | | gcc. Fixes PR9886. llvm-svn: 131181
* Windows/DynamicLibrary.inc: Clean up ELM_Callback. We may check the decl ↵NAKAMURA Takumi2011-05-011-0/+15
| | | | | | | | | instead of the versions of individual libraries. autoconf: Add checking ELM_Callback decl for mingw32 and mingw-w64. cmake/config-ix.cmake: Add checking ELM_Callback decl for win32. llvm-svn: 130657
* Rename profile_rt.so to libprofile_rt.so under configure+make (it already wasNick Lewycky2011-04-292-6/+10
| | | | | | | | | | | | 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
* Honor LLVM_BUILD_RUNTIME.Oscar Fuentes2011-04-261-3/+7
| | | | llvm-svn: 130199
* Disable warning C4181: "qualifier applied to reference type; ignored"Francois Pichet2011-04-191-1/+1
| | | | | | This was causing a flooding of warnings with MSVC 2008. This warning was removed in MSVC 2010. llvm-svn: 129737
* Fix a ton of comment typos found by codespell. Patch byChris Lattner2011-04-151-1/+1
| | | | | | Luis Felipe Strano Moraes! llvm-svn: 129558
* Export LLVM_TARGETS_WITH_JIT in LLVMConfig.cmake.in. Without this,Oscar Fuentes2011-04-131-0/+2
| | | | | | | | | component names such as "engine" do not expand to "jit" and hence to the native target libraries for external users. Thanks to arrowdodger for reporting and diagnosing the problem. llvm-svn: 129444
* CMake: remove some unnecesary code and ToDos.Oscar Fuentes2011-04-112-9/+1
| | | | | | Patch by arrowdodger! llvm-svn: 129274
* CMake: support for using LLVM from client projects with find_package.Oscar Fuentes2011-04-103-6/+22
| | | | | | Patch by arrowdodger! llvm-svn: 129247
* Rename LLVMConfig.cmake to LLVM-Config.cmake. The *Config.cmake namingOscar Fuentes2011-04-054-6/+6
| | | | | | scheme is used by the functionality related to find_package. llvm-svn: 128889
* Fix typos on LLVM.cmake. Export LLVM_ON_UNIX & LLVM_ON_WIN32.Oscar Fuentes2011-04-031-3/+3
| | | | | | Patch by arrowdodger! llvm-svn: 128789
* Handle changing of LLVM_ENABLE_FFI.Oscar Fuentes2011-04-021-0/+4
| | | | | | | | | | | | | | If someone first configure build with LLVM_ENABLE_FFI=1 and then turn it off, the build will fail in lib/ExecutionEngine/Interpreter because Interpreter will try still to #include <ffi/ffi.h>, but there are no include_directories(${FFI_INCLUDE_DIR}) now. This patch unset()'s HAVE_FFI_H and HAVE_FFI_FFI_H from cache file if LLVM_ENABLE_FFI=0. This forces CMake to update config.h. Patch by arrowdodger! llvm-svn: 128769
* Fix assignment of -fPIC to CMAKE_C_FLAGS. Configure llvm-config.in.inOscar Fuentes2011-04-011-1/+1
| | | | | | | | | with the contents of CMAKE_C(XX)_FLAGS too, else `llvm-config --c(xx)flags' doesn't tell the absolute truth. This comes from PR9603 and is based on a patch by Ryuta Suzuki! llvm-svn: 128727
* Revert accidental change to LLVMLibDeps.cmakeMatt Beaumont-Gay2011-03-291-1/+1
| | | | llvm-svn: 128499
* Quiet a gcc warning about changed name lookup rulesMatt Beaumont-Gay2011-03-291-1/+1
| | | | llvm-svn: 128497
* Fixed the build of Clang's unit tests on MinGW. Also removed someOscar Fuentes2011-03-292-16/+14
| | | | | | | | | | | 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
* Supports building with a list of targets that does not containOscar Fuentes2011-03-232-22/+24
| | | | | | X86. Fixes PR9533. llvm-svn: 128154
* Updated library dependencies.Oscar Fuentes2011-03-221-1/+1
| | | | | | | | Now we can remove RuntimeDyld from the LLVM_LINK_COMPONENTS of tools/lli. CMakeLists.txt LLVM_LINK_COMPONENTS shall not differ from its companion Makefile LINK_COMPONENTS. llvm-svn: 128069
* Build the new RuntimeDyld library.Oscar Fuentes2011-03-211-0/+1
| | | | llvm-svn: 128035
* Removed workaround for unspecified build problem on MinGW.Oscar Fuentes2011-03-211-5/+3
| | | | | | Tested that MinGW/MSYS builds fine without that. llvm-svn: 128033
* Update CMake library dependencies.Oscar Fuentes2011-03-191-1/+1
| | | | llvm-svn: 127956
* is_llvm_target_library: recognize libraries without the LLVM prefix.Oscar Fuentes2011-03-151-1/+2
| | | | | | | Without this cmake fails at configuration when some target pass "native" on LLVM_LINK_COMPONENTS and that is expanded to "X86". llvm-svn: 127679
* Whe we build a shared library, add its list of used libraries to theOscar Fuentes2011-03-122-2/+7
| | | | | | | | link command. Fixed a pair of IF expressions too. llvm-svn: 127546
* Process some link components that map to other expandable componentsOscar Fuentes2011-03-091-3/+15
| | | | | | | before the main loop. This is necessary because the loop ignores the items added to `link_components' after it is entered. llvm-svn: 127333
* Remove remnant of my experimentation with CMake.Oscar Fuentes2011-03-081-2/+0
| | | | llvm-svn: 127244
* Support for parallel compilation (/MP) when using the VS IDE.Oscar Fuentes2011-03-021-0/+25
| | | | | | Patch by Erik Olofsson! llvm-svn: 126847
* Added missing va_end().Talin2011-03-011-1/+1
| | | | llvm-svn: 126759
* cmake: Add xdot.py support as it already exists in autoconf.Tobias Grosser2011-02-271-0/+2
| | | | llvm-svn: 126563
* Export TARGET_TRIPLE on LLVM.cmake. It is necessary for running testsOscar Fuentes2011-02-231-0/+2
| | | | | | | | on Clang when it builds using LLVM as an external library. Fixes PR9293. llvm-svn: 126309
* CMake: remove unnecessary variable.Oscar Fuentes2011-02-223-4/+0
| | | | llvm-svn: 126224
* CMake: Define LLVM_INCLUDE_TESTS in cmake/modules/HandleLLVMOptions.cmake. ↵NAKAMURA Takumi2011-02-211-0/+1
| | | | | | It affects testing stuff on clang-standalone build. llvm-svn: 126107
* CMake: Fix breakage on clang standalone build.NAKAMURA Takumi2011-02-211-1/+1
| | | | llvm-svn: 126106
* Put targets on folders, if the IDE supports the feature.Oscar Fuentes2011-02-201-0/+12
| | | | | | Requires CMake 2.8.3 or newer. llvm-svn: 126092
* Use explicit add_subdirectory's for LLVM target sublibraries insteadOscar Fuentes2011-02-201-1/+1
| | | | | | | | | 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
* Add the PARSE_ARGUMENTS CMake macro to LLVM so I can use it to cleanJeffrey Yasskin2011-02-191-0/+80
| | | | | | up add_clang_unittest's calling convention. llvm-svn: 126031
* Move library stuff out of the toplevel CMakeLists.txt file.Oscar Fuentes2011-02-183-2/+6
| | | | llvm-svn: 125968
* New library: LLVMX86Utils.Oscar Fuentes2011-02-171-2/+3
| | | | llvm-svn: 125786
* CMake: LLVM_LIT_TOOLS_DIR is needed only on Win32 hosts to use GnuWin32 tools.NAKAMURA Takumi2011-02-101-2/+3
| | | | | | Unixen and Cygwin do not need it. llvm-svn: 125277
* CMake: Add the new option LLVM_LIT_TOOLS_DIR. It can specify "Path to ↵NAKAMURA Takumi2011-02-091-0/+2
| | | | | | GnuWin32 tools". llvm-svn: 125173
* lib/Support/Errno.cpp: Check strerror_s() with HAVE_DECL_STRERROR_S in ↵NAKAMURA Takumi2011-02-091-1/+1
| | | | | | | | | | config.h.*. AC_CHECK_FUNCS seeks a symbol only in libs. We should check the declaration in string.h. FIXME: I have never seen mingw(s) have strerror_s() (not _strerror_s()). FIXME: Autoconf/CMake may seek strerror_s() with the definition MINGW_HAS_SECURE_API in future. llvm-svn: 125172
* Install only *.cmake files. Don't install .svn directory.Oscar Fuentes2011-02-071-1/+2
| | | | | | Fixes PR9159. llvm-svn: 125001
* Don't define NDEBUG on MSVC_IDE and XCode builds. Fixes PR9155.Oscar Fuentes2011-02-061-1/+3
| | | | llvm-svn: 124985
* Moved more stuff to HandleLLVMOptions.cmakeOscar Fuentes2011-02-051-0/+21
| | | | llvm-svn: 124968
* Windows/DynamicLibrary.inc: Split explicit symbols into explicit_symbols.inc.NAKAMURA Takumi2011-02-051-0/+19
| | | | | | | config.h.* have conditions whether each symbol is defined or not. Autoconf and CMake may check symbols in libgcc.a for JIT on Mingw. llvm-svn: 124950
OpenPOWER on IntegriCloud