search for: add_clang_library

Displaying 12 results from an estimated 12 matches for "add_clang_library".

2019 Jan 09
4
Problems trying to build LLVM
...o add link library "clangAST" to target "clangApplyReplacements" which is not built in this directory. Call Stack (most recent call first): tools/clang/cmake/modules/AddClang.cmake:86 (llvm_add_library) tools/extra/clang-apply-replacements/CMakeLists.txt:5 (add_clang_library) Getting LLVM installed is proving much more problematic than I was expecting, based on experience with many other open source projects. Can someone give me a push in the right direction? I started with this document: http://llvm.org/docs/GettingStarted.html, but found no guidance about the proble...
2011 Apr 25
0
[LLVMdev] Big Windows Clang DLL
...with respect to the cmake build tool: 1. A "BUILD_LLVM_DLL" configuration flag is added to the cmake build, such that specifying "-DBUILD_LLVM_DLL=ON" in the cmake command line will enable the big-DLL build. By default it is off. 2. Factor out the common portions of the "add_clang_library" into "add_clang_library_common". 3. Modify the cmake macro "add_clang_library" to collect the source file full path strings in a new target property. 4. Add a new "add_clang_dll" cmake macro for creating the big DLL. This macro operates like "add_clang_lib...
2017 Aug 04
2
Cross compiling C++ program
...-Config.cmake:203 (message): Library `BinaryFormat' not found in list of llvm libraries. Call Stack (most recent call first): /usr/local/llvm40/lib/cmake/llvm/AddLLVM.cmake:508 (llvm_map_components_to_libnames) cmake/modules/AddClang.cmake:86 (llvm_add_library) lib/AST/CMakeLists.txt:6 (add_clang_library) -- Configuring incomplete, errors occurred! See also "/usr/home/meka/repos/clang/build/clang/CMakeFiles/CMakeOutput.log". > A note on linker scripts: support for them in lld is still a bit rough > around the edges, so you may want to use the linker that comes with your > boa...
2017 Aug 04
3
Cross compiling C++ program
...aryFormat' not found in list of llvm libraries. > > Call Stack (most recent call first): > > /usr/local/llvm40/lib/cmake/llvm/AddLLVM.cmake:508 (llvm_map_components_to_libnames) > > cmake/modules/AddClang.cmake:86 (llvm_add_library) > > lib/AST/CMakeLists.txt:6 (add_clang_library) > > > > -- Configuring incomplete, errors occurred! > > See also "/usr/home/meka/repos/clang/build/clang/CMakeFiles/CMakeOutput.log". > > I think it found an installed llvm, and is trying to use that to build clang > against. First, the clang and llvm's ver...
2010 Dec 21
1
[LLVMdev] [PATCH] OS X - BugpointPasses and LLVMHello have extension ".so" when using CMake
...LLVMHello, that are built with the extension ".so" instead of the extension ".dylib". This has been causing four test cases to fail when running "make check". The attached patch modifies add_llvm_loadable_module in the CMake build system with a piece of logic found in add_clang_library in Clang's build system. I'm not quite sure what the logic is doing, but it did cause the two preview libraries to be emitted with the correct ".dylib" extension and allowed "make check" to run successfully. I've tested this with the two systems that I regularly bui...
2012 Apr 10
2
[LLVMdev] Building LLVM+clang on Windows
...ibraries. > Call Stack (most recent call first): > cmake/modules/LLVM-Config.cmake:54 (explicit_map_components_to_libraries) > cmake/modules/LLVM-Config.cmake:47 (explicit_llvm_config) > tools/clang/CMakeLists.txt:192 (llvm_config) > tools/clang/lib/CodeGen/CMakeLists.txt:13 (add_clang_library) I tried Googl'ing for the error, but nothing. A little help? Note that I did successfully build LLVM without clang initially, but now I want to build it with clang. - Paul
2010 Jun 18
1
[LLVMdev] export of CMake project
...++ CMakeLists.txt (working copy) @@ -85,6 +85,7 @@ set_target_properties(${name} PROPERTIES COMPILE_FLAGS ${cflag}) endif(MSVC) install(TARGETS ${name} + EXPORT LLVM LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) endmacro(add_clang_library)
2020 Sep 27
3
How to add a new clang-tidy module
...g-tools-extra/clang-tidy/misra/CMakeLists.txt b/clang-tools-extra/clang-tidy/misra/CMakeLists.txt new file mode 100644 index 00000000000..ca345a946c9 --- /dev/null +++ b/clang-tools-extra/clang-tidy/misra/CMakeLists.txt @@ -0,0 +1,28 @@ +set(LLVM_LINK_COMPONENTS + support + FrontendOpenMP + ) + +add_clang_library(clangTidyMISRAModule + M011Check.cpp + MISRATidyModule.cpp + LINK_LIBS + clangTidy + clangTidyBugproneModule + clangTidyGoogleModule + clangTidyMiscModule + clangTidyPerformanceModule + clangTidyReadabilityModule + clangTidyUtils + + DEPENDS + omp_gen +) + +clang_target_link_libraries(c...
2014 Mar 08
2
[LLVMdev] Why are the tablegen files excluded from source lists/
My problem is that the .td and .h files are not shown as sources in the codeblocks (.cbp) output generated by cmake. I’m consuming the .cbp file with Qt Creator - it’s seems to be an otherwise excellent tool for llvm development. It seems that the culprit is llvm_process_sources function in cmake/modules/LLVMProcessSources.cmake. The addition of .td sources and header files is wrapped in the
2011 Oct 25
0
[LLVMdev] [LLVMDev] Clang stopped compiling?
On Oct 25, 2011, at 6:09 AM, Marcello Maggioni wrote: > Hi, I'm trying to compile the latest clang/llvm SVN versions and I get > this error on multiple systems : Linking, not compiling, but still. I am getting a similar error when building this morning. > Undefined symbols for architecture x86_64: > "clang::Sema::checkPseudoObjectRValue(clang::Expr*)", referenced
2011 Oct 25
2
[LLVMdev] [LLVMDev] Clang stopped compiling?
Hi, I'm trying to compile the latest clang/llvm SVN versions and I get this error on multiple systems : (Compiling with gcc): llvm[4]: Compiling cc1_main.cpp for Debug+Asserts build llvm[4]: Compiling cc1as_main.cpp for Debug+Asserts build llvm[4]: Compiling driver.cpp for Debug+Asserts build llvm[4]: Linking Debug+Asserts executable clang
2017 Aug 04
3
Cross compiling C++ program
On Thu, Aug 03, 2017 at 08:22:24AM -0600, Jonathan Roelofs wrote: > IIUC, you don't want to cross compile llvm itself (which is what those > instructions are for), but instead you want to *use* llvm to cross compile > things. > > To build your sysroot, you'll need to cross-build: > > 1) A libc. Good choices for that for baremetal are: newlib or musl. > 2)