summaryrefslogtreecommitdiffstats
path: root/llvm/cmake
Commit message (Collapse)AuthorAgeFilesLines
...
* [CMake] configure_lit_site_cfg: ${SHLIBDIR} should point the build tree.NAKAMURA Takumi2014-01-261-1/+5
| | | | llvm-svn: 200134
* Don't clobber CMAKE_REQUIRED_FLAGS, it ends up being used inChandler Carruth2014-01-211-0/+4
| | | | | | C compilations as well and these flags don't make any sense there. llvm-svn: 199756
* Fix VS2012 ID/version check.Amara Emerson2014-01-211-1/+1
| | | | llvm-svn: 199753
* Fix libstdc++4.7 test on Android.Evgeniy Stepanov2014-01-211-0/+3
| | | | llvm-svn: 199714
* [CMake] LLVMProcessSources.cmake: Add include(CMakeParseArguments).NAKAMURA Takumi2014-01-201-0/+1
| | | | | | I didn't realize that cmake_parse_arguments() would require explicit inclusion. llvm-svn: 199674
* [CMake] llvm_process_sources: Introduce a parameter, ADDITIONAL_HEADERS.NAKAMURA Takumi2014-01-201-2/+4
| | | | | | | | | | | | | | ADDITIONAL_HEADERS is intended to add header files for IDEs as hint. For example: add_llvm_library(LLVMSupport Host.cpp ADDITIONAL_HEADERS Unix/Host.inc Windows/Host.inc ) llvm-svn: 199639
* [CMake] Introduce new scheme of LLVM_TOOLS_BINARY_DIR and LLVM_LIBRARY_DIRNAKAMURA Takumi2014-01-191-3/+3
| | | | | | | | In LLVM build tree, they points corresponding INTDIR. In Clang standalone tree, they points external dir (llvm-config's --bindir and --libdir). llvm-svn: 199595
* [CMake] Prune deprecate usage of CMAKE_RUNTIME_OUTPUT_DIRECTORY.NAKAMURA Takumi2014-01-191-2/+0
| | | | llvm-svn: 199592
* Add the test for libstdc++ versions newer than 4.6 so we don'tChandler Carruth2014-01-171-0/+16
| | | | | | | | accidentally pick that up while using Clang and run into subtle bugs down the road related to C++11 features not fully implemented in that version of the standard library. llvm-svn: 199484
* [cmake] Attempt to fix sanitizer buildbot.Quentin Colombet2014-01-161-2/+6
| | | | | | | | | The generation of the native_export_file end up in several different makefiles. All those makefiles write the same file, but can be executed concurrently... and bad things happen! llvm-svn: 199356
* Factor the option and checking of compiler version better. Put theChandler Carruth2014-01-132-19/+16
| | | | | | | | option with the others in the top level CMakeLists, and put the check in HandleLLVMOptions. This will also let it be used from the standalone Clang builds. llvm-svn: 199149
* Add a check that the host compiler is modern to CMake, take 1. This isChandler Carruth2014-01-131-0/+19
| | | | | | | | | | | | | likely to be reverted and re-applied a few times. The minimum versions we're aiming at: GCC 4.7 Clang 3.1 MSVC 17.0 (Visual Studio 2012) Let me know if something breaks! llvm-svn: 199145
* [CMake] Add a comment to tablegen's copy_if_different. Ninja reports every ↵NAKAMURA Takumi2014-01-121-1/+1
| | | | | | action by default. llvm-svn: 199058
* CMake: Provide LLVM_PLUGIN_EXT definitionAlp Toker2014-01-082-5/+8
| | | | | | | | | | | | | | | This is needed to support the addition of tests for clang loadable plugins. In clang, plugins are built as modules (bundles on OS X) rather than dynamic libraries (dylib) so the build system needs to inform lit of the actual file extension in use, typically '.so' on Unix and '.dll' on Windows. (LLVM itself should probably switch to this scheme to fix PR14903 once and for all.) No change in build output or functionality intended. llvm-svn: 198746
* [CMake] Introduce llvm_update_compile_flags(target_name) to update compile ↵NAKAMURA Takumi2014-01-071-24/+36
| | | | | | | | flags in target properties. FIXME: Just add_unittest() is using it. FIXME: Cooperate with source properties. llvm-svn: 198683
* Introduce a cmake LLVM_ENABLE_LIBCXX build parameter to compile using libc++ ↵Jean-Daniel Dupas2014-01-061-0/+7
| | | | | | | | | | | | | | instead of the system default Summary: This parameter is required to build C++11 projects (like lld or lldb) on OS X as the default STL does not provide c++ classes. CC: llvm-commits, triton Differential Revision: http://llvm-reviews.chandlerc.com/D2381 llvm-svn: 198625
* Add a FIXME.Nico Weber2014-01-051-0/+3
| | | | llvm-svn: 198528
* [CMake] Add missing set_output_directory after Takumi's change in r198205.Jordan Rose2014-01-021-1/+2
| | | | | | | | | Plugins need to go in build/Debug/lib as well (rather than build/lib/Debug). Also, fix the SHLIBDIR path for Xcode, which by default includes Xcode build settings rather than a simple %(build_mode)s parameter. llvm-svn: 198344
* CMake separate projects: use correct name for ↵Douglas Gregor2014-01-021-1/+1
| | | | | | LIBRARY_OUTPUT_DIRECTORY_${suffix}. llvm-svn: 198335
* Remove CMake-Xcode hack that symlinked llvm-config into a common place.Douglas Gregor2014-01-021-10/+0
| | | | | | | When building Clang separately from LLVM with CMake, one should set the path of llvm-config via the cache variable LLVM_CONFIG. llvm-svn: 198316
* [CMake][VS][XCode] Restruct the output directory layout more comfortable, ↵NAKAMURA Takumi2013-12-301-1/+24
| | | | | | | | | | | | | | | | | | ${BINARY_DIR}/${BUILD_MODE}/(bin|lib) We have been seeing nasty directory layout with CMake multiconfig, such as, bin/Release/clang.exe lib/clang/3.x/... lib/Release/clang/3.x/.. (duplicated) Move the layout similar to autoconf's; Release/bin/clang.exe Release/lib/clang/3.x/... Checked on Visual Studio 10. Could you guys please confirm my change on XCode(and other multiconfig builders)? Note: Don't set variables CMAKE_*_OUTPUT_DIRECTORY any more, or a certain builder, for eaxample, msbuild.exe, would be confused. llvm-svn: 198205
* Visual C++ does not support -ffunction-sections -fdata-sections.Yaron Keren2013-12-301-1/+1
| | | | llvm-svn: 198203
* Port r198087 and r198089 (strip dead code by default) from make to cmake.Nico Weber2013-12-301-0/+22
| | | | llvm-svn: 198198
* [cmake] In add_llvm_loadable_module, don't clobber existing LINK_FLAGS on OS X.Nico Weber2013-12-291-5/+5
| | | | | | | Also add leading spaces to the LINK_FLAGS setters, since that's what the cmake folks recommend: http://www.cmake.org/pipermail/cmake/2012-October/052399.html llvm-svn: 198182
* Fix mis-merging in AddLLVM.cmake, take #2. LINK.EXE's options had been ↵NAKAMURA Takumi2013-12-291-1/+1
| | | | | | broken. Sorry again. llvm-svn: 198169
* Fix mis-merging in AddLLVM.cmake. Sorry.NAKAMURA Takumi2013-12-291-0/+1
| | | | llvm-svn: 198166
* [CMake] Fix add_llvm_loadble_module.NAKAMURA Takumi2013-12-291-3/+3
| | | | | | Thanks to Edward-san, to let me know. llvm-svn: 198165
* [CMake] add_llvm_symbol_exports: Use unique name for each target.NAKAMURA Takumi2013-12-291-3/+3
| | | | llvm-svn: 198164
* [CMake] add_llvm_symbol_exports: Use ${native_export_file} instead of ↵NAKAMURA Takumi2013-12-291-16/+15
| | | | | | equivalent constant "symbol.*', since it is defined. llvm-svn: 198163
* Yet another attempt at getting cmake-clang-i686-mingw32 green.Nico Weber2013-12-291-1/+1
| | | | llvm-svn: 198159
* Windows build fixes, hopefully last part.Nico Weber2013-12-291-2/+7
| | | | | | | r198153 fixed the msvs bot problem, but broke a msysgit bot. This change hopefully makes both variants happy. llvm-svn: 198156
* Another windows build fix attempt.Nico Weber2013-12-291-1/+1
| | | | | | Inspired by http://public.kitware.com/pipermail/cmake-developers/2012-March/003768.html llvm-svn: 198153
* More windows build fix attempts.Nico Weber2013-12-291-3/+3
| | | | | | | | The windows ninja build is now green, but msvs is still unhappy. Maybe that's because the .def file was passed when building LTO_static, so only pass symbol lists for shared libraries. llvm-svn: 198151
* The same we do every commit, Pinky: Try to fix the windows build (after ↵Nico Weber2013-12-291-1/+4
| | | | | | r198136). llvm-svn: 198148
* Another windows build fix attempt after r198136.Nico Weber2013-12-291-1/+1
| | | | | | The current quoting is stripped by cmake, try quoting more. llvm-svn: 198143
* Try to fix windows build more after r198136.Nico Weber2013-12-291-1/+1
| | | | | | | | | The command that cmd.exe is complaining about is: cmd.exe /c cd /D C:\bb-win7\cmake-clang-i686-mingw32\build\tools\lto && cmake -E echo EXPORTS > symbol.def && type C:/bb-win7/cmake-clang-i686-mingw32/llvm-project/llvm/tools/lto/lto.exports >> symbol.def Maybe quoting the filename helps. llvm-svn: 198140
* Use `${CMAKE_COMMAND}` instead of `cmake`.Nico Weber2013-12-291-2/+2
| | | | llvm-svn: 198139
* Try to fix windows build after r198136.Nico Weber2013-12-281-1/+1
| | | | | | `type` can't read from stdin. llvm-svn: 198138
* Try to fix linux build after r198136.Nico Weber2013-12-281-1/+1
| | | | | | $ needs to be written $$ in makefiles, but not in cmakefiles. llvm-svn: 198137
* EXPORTED_SYMBOL_FILE support for cmakeNico Weber2013-12-282-0/+82
| | | | | | | | | | | | | The cmake build didn't support EXPORTED_SYMBOL_FILE. Instead, it had a Windows-only implementation in tools/lto/CMakeLists.txt, a linux-only implementation in tools/gold/CMakeLists.txt, and a darwin-only implementation in tools/clang/tools/libclang/CMakeLists.txt. This attempts to consolidate these one-offs into a single place. Clients can now just set LLVM_EXPORTED_SYMBOL_FILE and things (hopefully) Just Work, like in the make build. llvm-svn: 198136
* Remove windows newlines.Nico Weber2013-12-281-7/+7
| | | | llvm-svn: 198135
* Fix documentation typosAlp Toker2013-12-201-2/+2
| | | | llvm-svn: 197757
* Revert r197682, "[CMake] Introduce LIT in add_lit_target."NAKAMURA Takumi2013-12-191-5/+2
| | | | llvm-svn: 197703
* [CMake] Introduce LIT in add_lit_target.NAKAMURA Takumi2013-12-191-2/+5
| | | | llvm-svn: 197682
* [CMake] Don't put every project's tblgen executable in the LLVM bin directory.Jordan Rose2013-12-181-2/+0
| | | | | | | | | This changes Clang standalone builds so that clang-tblgen lives in clang/build/bin instead of llvm/build/bin, and so that with the Xcode generator it's in clang/build/bin/Debug instead of llvm/build/bin/Debug/Debug/. Yes, really. llvm-svn: 197590
* [CMake] Prune LLVM_TOOLS_BINARY_DIR in LLVMConfig.cmake, since it always ↵NAKAMURA Takumi2013-12-181-2/+0
| | | | | | points build directory. llvm-svn: 197581
* [CMake] ${LLVM_MAIN_SRC_DIR}/include can be represented as ↵NAKAMURA Takumi2013-12-161-1/+1
| | | | | | ${LLVM_MAIN_INCLUDE_DIR}. llvm-svn: 197396
* [CMake] Introduce LLVM_RUNTIME_OUTPUT_INTDIR and LLVM_LIBRARY_OUTPUT_INTDIR ↵NAKAMURA Takumi2013-12-161-3/+3
| | | | | | | | | | to reduce references to CMAKE_CFG_INTDIR. Each of them forms like; ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR} ${CMAKE_BINARY_DIR}/lib/${CMAKE_CFG_INTDIR} llvm-svn: 197394
* [CMake] add_lit_target: Let lit.site.cfg free from "--param build_mode" on ↵NAKAMURA Takumi2013-12-041-4/+10
| | | | | | single configuration builds, like autoconf build. llvm-svn: 196377
* [CMake] add_lit_target: Tests should be excluded from "Build Solution".NAKAMURA Takumi2013-12-021-0/+3
| | | | llvm-svn: 196093
OpenPOWER on IntegriCloud