summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules/LLVMProcessSources.cmake
Commit message (Collapse)AuthorAgeFilesLines
* CMake: Include private headers / tablegen files in generated Xcode projects.Jordan Rose2012-10-231-1/+1
| | | | llvm-svn: 166503
* LLVMProcessSources.cmake: [MSVC] Don't add "PROPERTIES HEADER_FILE_ONLY" to ↵NAKAMURA Takumi2012-06-241-1/+2
| | | | | | | *.def. FIXME: Shall we put *.def(s) to the folder? llvm-svn: 159102
* Completely refactor the structuring of unittest CMake files to match theChandler Carruth2012-06-211-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makefiles, the CMake files in every other part of the LLVM tree, and sanity. This should also restore the output tree structure of all the unit tests, sorry for breaking that, and thanks for letting me know. The fundamental change is to put a CMakeLists.txt file in the unittest directory, with a single test binary produced from it. This has several advantages: - No more weird directory stripping in the unittest macro, allowing it to be used more readily in other projects. - No more directory prefixes on all the source files. - Allows correct and precise use of LLVM's per-directory dependency system. - Allows use of the checking logic for source files that have not been added to the CMake build. This uncovered a file being skipped with CMake in LLVM and one in Clang's unit tests. - Makes Specifying conditional compilation or other custom logic for JIT tests easier. It did require adding the concept of an explicit 'optional' source file to the CMake build so that the missing-file check can skip cases where the file is *supposed* to be missing. =] This is another chunk of refactoring the CMake build in order to make it usable for other clients like CompilerRT / ASan / TSan. Note that this is interdependent with a Clang CMake change. llvm-svn: 158909
* Handle gcc-compatible compilers (such as clang) the same way we handleOscar Fuentes2011-05-111-2/+2
| | | | | | | | gcc. Fixes PR9886. llvm-svn: 131181
* Made llvm_replace_compiler_option more robust. Use it onOscar Fuentes2011-01-111-7/+14
| | | | | | llvm_process_sources. llvm-svn: 123232
* Don't use -O3 on Mingw, as people report it as unreliable. Use -O2Oscar Fuentes2011-01-071-0/+10
| | | | | | instead. llvm-svn: 123028
* LLVMProcessSources: add .def files along with .h files to targets forOscar Fuentes2011-01-031-1/+1
| | | | | | the benefit of project-based generators (VS, XCode, etc). llvm-svn: 122749
* Propagate to parent scope changes made to CMAKE_CXX_FLAGS.Oscar Fuentes2011-01-021-0/+1
| | | | llvm-svn: 122692
* CMake (MSVC): cmake automatically adds the /EHsc and /GR compilerOscar Fuentes2010-12-311-2/+2
| | | | | | | | | | options. If we are building with exceptions/rtti disabled, we replace /EHsc with /EHs-c- and /GR with /GR-, respectively. If we just add the disabling options we get warnings like this: cl : Command line warning D9025 : overriding '/EHs' with '/EHs-' llvm-svn: 122648
* Disable C++ exception handling on MSVC.Francois Pichet2010-12-041-0/+3
| | | | | | Total size of bin\Release on disk goes from 82.9 MB to 74.2 MB. (~10% saving) llvm-svn: 120908
* Disable RTTI on Windows. Francois Pichet2010-12-041-0/+2
| | | | | | Total size of bin\Release on disk goes from 83.6 MB to 81.8MB. (~2% saving) llvm-svn: 120901
* Build with RTTI and exceptions disabled. Only in GCC for now.Oscar Fuentes2010-10-171-0/+13
| | | | llvm-svn: 116682
* CMake: Report an error if there is an unknown .cpp file in a sourceOscar Fuentes2009-11-021-0/+15
| | | | | | | | | | | directory. This is useful in case someone who works with the config&make build system forgot to add a file to its CMakeLists.txt. Instead of obtaining undefined references at link time, cmake will complain at configure time on the first build after a svn update. llvm-svn: 85817
* CMake: Adds header and TableGen files to Visual Studio solution. A newOscar Fuentes2008-11-151-1/+27
| | | | | | | dummy library, `llvm_headers_do_not_build', is created for containing all header and TableGen files under include/llvm. llvm-svn: 59346
* CMake: Fixed dependencies of .cpp source files on .td and tablegennedOscar Fuentes2008-11-141-0/+13
files. llvm-svn: 59325
OpenPOWER on IntegriCloud