Home
last modified time | relevance | path

Searched full:cmake (Results 1 – 25 of 641) sorted by relevance

12345678910>>...26

/llvm-project/llvm/docs/
H A DCMakePrimer.rst2 CMake Primer
10 anyone affiliated with the CMake project. This document may contain
18 The LLVM project and many of the core projects built on LLVM build using CMake.
19 This document aims to provide a brief overview of CMake for developers modifying
22 The official CMake language references is available in the cmake-language
23 manpage and `cmake-language online documentation
24 <https://cmake.org/cmake/help/v3.4/manual/cmake-language.7.html>`_.
29 CMake is a tool that reads script files in its own language that describe how a
30 software project builds. As CMake evaluates the scripts it constructs an
32 fully processed, if there are no errors, CMake will generate build files to
[all …]
H A DAdvancedBuilds.rst11 `CMake <http://www.cmake.org/>`_ is a cross-platform build-generator tool. CMake
16 :doc:`CMake` pages. This page is intended for users doing more complex builds.
18 Many of the examples below are written assuming specific CMake Generators.
19 Unless otherwise explicitly called out these commands should work with any CMake
23 utilized by using a CMake cache. A CMake cache is essentially a configuration
25 for Clang are located in :code:`/clang/cmake/caches` within the monorepo. They
26 can be passed to CMake using the :code:`-C` flag as demonstrated in the examples
32 The Clang CMake build system supports bootstrap (aka multi-stage) builds. At a
38 then use that just-built clang to build clang again. In CMake this simplest form
44 $ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
[all …]
H A DTestSuiteGuide.md47 3. Create a build directory and use CMake to configure the suite. Use the
54 % cmake -DCMAKE_C_COMPILER=<path to llvm build>/bin/clang \
55 -C../test-suite/cmake/caches/O3.cmake \
61 `LLVM_ENABLE_RUNTIMES` cmake flag.
149 performance measurements. Setting the `TEST_SUITE_BENCHMARKING_ONLY` CMake
189 and will run when CMake option `TEST_SUITE_BENCHMARKING_ONLY` is set.
195 benchmarks. CMake can print a list of them:
200 % cmake -LH
202 % cmake
[all...]
H A DCMake.rst2 Building LLVM with CMake
11 `CMake <http://www.cmake.org/>`_ is a cross-platform build-generator tool. CMake
20 `Quick start`_ section. If you are a CMake novice, start with `Basic CMake usage`_
23 you already have experience with CMake, this is the recommended starting point.
25 This page is geared towards users of the LLVM CMake build. If you're looking for
26 information about modifying the LLVM CMake build system you may want to see the
27 :doc:`CMakePrimer` page. It has a basic overview of the CMake languag
[all...]
/llvm-project/libcxx/utils/ci/
H A Drun-buildbot32 CC The C compiler to use, this value is used by CMake. This
35 CXX The C++ compiler to use, this value is used by CMake. This
38 CMAKE The CMake binary to use. This variable is optional.
76 # If we can find Ninja/CMake provided by Xcode, use those since we know their
78 # knows about -std=c++20, the CMake bundled in Xcode will probably know about
85 # TODO MODULES Is this still needed when CMake has libc++ module support?
91 if [ -z "${CMAKE}" ]; then
92 if xcrun --find cmake &>/dev/null; then
93 CMAKE
[all...]
/llvm-project/clang/cmake/modules/
H A DCMakeLists.txt6 # Generate a list of CMake library targets so that other CMake projects can
7 # link against them. LLVM calls its version of this file LLVMExports.cmake, but
8 # the usual CMake convention seems to be ${Project}Targets.cmake.
10 "Path for CMake subdirectory for Clang (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/clang')")
12 set(clang_cmake_builddir "${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/clang")
14 # Keep this in sync with llvm/cmake/CMakeLists.txt!
16 "Path for CMake subdirectory for LLVM (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/llvm')")
19 set(llvm_cmake_builddir "${llvm_cmake_builddir}/cmake/llvm")
22 export(TARGETS ${CLANG_EXPORTS} FILE ${clang_cmake_builddir}/ClangTargets.cmake)
24 # Generate ClangConfig.cmake for the build tree.
[all …]
/llvm-project/mlir/cmake/modules/
H A DCMakeLists.txt6 # Generate a list of CMake library targets so that other CMake projects can
7 # link against them. LLVM calls its version of this file LLVMExports.cmake, but
8 # the usual CMake convention seems to be ${Project}Targets.cmake.
10 "Path for CMake subdirectory for Polly (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/polly')")
12 set(mlir_cmake_builddir "${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/mlir")
14 # Keep this in sync with llvm/cmake/CMakeLists.txt!
16 "Path for CMake subdirectory for LLVM (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/llvm')")
19 set(llvm_cmake_builddir "${llvm_cmake_builddir}/cmake/llvm")
22 export(TARGETS ${MLIR_EXPORTS} FILE ${mlir_cmake_builddir}/MLIRTargets.cmake)
31 # Generate MlirConfig.cmake for the build tree.
[all …]
/llvm-project/flang/cmake/modules/
H A DCMakeLists.txt5 # Generate a list of CMake library targets so that other CMake projects can
6 # link against them. LLVM calls its version of this file LLVMExports.cmake, but
7 # the usual CMake convention seems to be ${Project}Targets.cmake.
9 "Path for CMake subdirectory for Flang (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/flang')")
11 set(flang_cmake_builddir "${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/flang")
13 # Keep this in sync with llvm/cmake/CMakeLists.txt!
15 "Path for CMake subdirectory for LLVM (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/llvm')")
18 set(llvm_cmake_builddir "${llvm_cmake_builddir}/cmake/llvm")
21 export(TARGETS ${FLANG_EXPORTS} FILE ${flang_cmake_builddir}/FlangTargets.cmake)
23 # Generate FlangConfig.cmake for the build tree.
[all …]
/llvm-project/lld/cmake/modules/
H A DCMakeLists.txt5 # Generate a list of CMake library targets so that other CMake projects can
6 # link against them. LLVM calls its version of this file LLVMExports.cmake, but
7 # the usual CMake convention seems to be ${Project}Targets.cmake.
9 "Path for CMake subdirectory for LLD (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/lld')")
11 set(lld_cmake_builddir "${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/lld")
13 # Keep this in sync with llvm/cmake/CMakeLists.txt!
15 "Path for CMake subdirectory for LLVM (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/llvm')")
18 set(llvm_cmake_builddir "${llvm_cmake_builddir}/cmake/llvm")
21 export(TARGETS ${LLD_EXPORTS} FILE ${lld_cmake_builddir}/LLDTargets.cmake)
23 # Generate LLDConfig.cmake for the build tree.
[all …]
/llvm-project/llvm/cmake/modules/
H A DCMakeLists.txt7 set(llvm_cmake_builddir "${llvm_cmake_builddir}/cmake/llvm")
9 # First for users who use an installed LLVM, create the LLVMExports.cmake file.
10 set(LLVM_EXPORTS_FILE ${llvm_cmake_builddir}/LLVMExports.cmake)
16 set(LLVM_BUILDTREEONLY_EXPORTS_FILE ${llvm_cmake_builddir}/LLVMBuildTreeOnlyTargets.cmake)
28 # CMake requires that all targets expressed as dependencies exist, so we can't
30 # projects building out of tree will have CMake errors. This only gets hit when
44 # Generate LLVMConfig.cmake for the build tree.
89 # one from the build tree. This is due to our cmake files being split between
92 # tree, both the generated LLVMExports.cmake file and the rest of the cmake
[all...]
/llvm-project/clang/cmake/caches/
H A DMultiDistributionExample.cmake3 # build; see clang/cmake/caches/DistributionExample.cmake and the
54 # Note that we need to include the CMake exports targets for the distribution
55 # (development-cmake-exports and clang-development-cmake-exports), as well as
56 # the general CMake exports target for each project (cmake-exports and
57 # clang-cmake-exports), in our list of targets. The distribution CMake exports
58 # targets just install the CMake exports file for the distribution's targets,
59 # whereas the project CMake exports targets install the rest of the project's
60 # CMake exports (which are needed in order to import the project from other
61 # CMake_projects via find_package, and include the distribution's CMake exports
65 cmake-exports
[all …]
H A DREADME.txt1 CMake Caches
4 This directory contains CMake cache scripts that pre-populate the CMakeCache in
7 You can use the caches files with the following CMake invocation:
9 cmake -G <build system>
11 [additional CMake options (i.e. -DCMAKE_INSTALL_PREFIX=<install path>)]
31 The PGO CMake cache can be used to generate a multi-stage instrumented compiler.
32 You can configure your build directory with the following invocation of CMake:
34 cmake -G <generator> -C <path_to_clang>/cmake/caches/PGO.cmake <source dir>
67 using the following CMake command:
69 cmake -C <path to clang>/cmake/caches/3-stage.cmake -G Ninja <path to llvm>
/llvm-project/lldb/docs/resources/
H A Dbuild.rst27 * `CMake <https://cmake.org>`_
48 By default they are auto-detected: if CMake can find the dependency it will be
50 CMake flag to ``On`` or ``Off`` to force the dependency to be enabled or
52 CMake configuration error.
55 | Feature | Description | CMake Flag |
78 $ pkgin install swig python38 cmake ninja-build
79 $ brew install swig cmake ninja
150 Building LLDB with CMake
161 CMake i
[all...]
/llvm-project/polly/cmake/
H A DCMakeLists.txt1 # Keep this in sync with llvm/cmake/CMakeLists.txt!
8 "Path for CMake subdirectory for Polly (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/polly')")
10 set(polly_cmake_builddir "${POLLY_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/cmake/polly")
13 "Path for CMake subdirectory for LLVM (defaults to '${CMAKE_INSTALL_PACKAGEDIR}/llvm')")
16 set(llvm_cmake_builddir "${llvm_cmake_builddir}/cmake/llvm")
19 set(POLLY_EXPORTS_FILE_NAME "PollyExports-$<LOWER_CASE:$<CONFIG>>.cmake")
22 set(POLLY_EXPORTS_FILE_NAME "PollyExports-all.cmake")
55 # Generate PollyConfig.cmake for the build tree.
80 ${CMAKE_CURRENT_SOURCE_DIR}/PollyConfig.cmake.in
81 ${polly_cmake_builddir}/PollyConfig.cmake
[all …]
/llvm-project/openmp/
H A DREADME.rst4 This repository requires `CMake <http://www.cmake.org/>`_ v2.8.0 or later. LLVM
7 `LLVM's CMake documentation <https://llvm.org/docs/CMake.html>`_ and the
8 `official documentation <https://cmake.org/cmake/help/v2.8.0/cmake.html>`_.
13 How to Call CMake Initially, then Repeatedly
15 - When calling CMake for the first time, all needed compiler options must be
16 specified on the command line. After this initial call to CMake, the compiler
17 definitions must not be included for further calls to CMake. Other options
26 $ cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .. # Initial configuration
30 $ cmake -DCMAKE_BUILD_TYPE=Debug .. # Second configuration
34 $ cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ .. # Third configuration
[all …]
/llvm-project/libcxx/docs/
H A DModules.rst31 currently ships a CMake project to aid building modules.
33 .. note:: This CMake file is intended to be a temporary solution and will
63 * There is no official build system support, libc++ has experimental CMake support
64 * Requires CMake 3.26 for C++20 support
65 * Requires CMake 3.26 for C++23 support
66 * Requires CMake 3.27 for C++26 support
109 Clang 17 or later and CMake 3.26 or later.
112 a recent build of CMake. The CMake changes will be part of CMake 3.30. This
123 $ cmake -G Ninja -S runtimes -B build -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind"
142 .. code-block:: cmake
[all …]
/llvm-project/cmake/Modules/
H A DCMakePolicy.cmake1 # CMake policy settings shared between LLVM projects
4 # New in CMake 3.20. https://cmake.org/cmake/help/latest/policy/CMP0116.html
12 # New in CMake 3.25.
23 # New in CMake 3.27: https://cmake.org/cmake/help/latest/policy/CMP0144.html
29 # New in CMake 3.27: https://cmake
[all...]
/llvm-project/utils/bazel/llvm_configs/
H A DBUILD.bazel6 # from the configuration in the .cmake files, since we don't alway use them
15 name = "diff_config.h.cmake",
16 file1 = "@llvm-project//llvm:include/llvm/Config/config.h.cmake",
17 file2 = "config.h.cmake",
21 name = "diff_llvm-config.h.cmake",
22 file1 = "@llvm-project//llvm:include/llvm/Config/llvm-config.h.cmake",
23 file2 = "llvm-config.h.cmake",
27 name = "diff_abi-breaking.h.cmake",
28 file1 = "@llvm-project//llvm:include/llvm/Config/abi-breaking.h.cmake",
29 file2 = "abi-breaking.h.cmake",
/llvm-project/flang/docs/
H A DGettingStarted.md73 cmake \
92 having to specify additional flags, use the `DEFAULT_SYSROOT` CMake flag, e.g.
98 the cmake command above:
122 cmake \
169 cmake \
178 -DLLVM_BUILD_MAIN_SRC_DIR=$ROOTDIR/build/lib/cmake/llvm \
181 -DLLVM_DIR=$ROOTDIR/build/lib/cmake/llvm \
182 -DCLANG_DIR=$ROOTDIR/build/lib/cmake/clang \
183 -DMLIR_DIR=$ROOTDIR/build/lib/cmake/mlir \
211 cmake \
[all …]
/llvm-project/runtimes/
H A DCMakeLists.txt16 # Add path for custom and the LLVM build's modules to the CMake module path.
17 set(LLVM_COMMON_CMAKE_UTILS "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
18 include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake
21 include(${LLVM_COMMON_CMAKE_UTILS}/Modules/LLVMVersion.cmake)
28 "${CMAKE_CURRENT_SOURCE_DIR}/cmake"
29 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules"
32 "${CMAKE_CURRENT_SOURCE_DIR}/../llvm/cmake"
33 "${CMAKE_CURRENT_SOURCE_DIR}/../llvm/cmake/modules"
69 # If building standalone by pointing CMake at this runtimes directory,
88 set(LLVM_CMAKE_DIR ${LLVM_MAIN_SRC_DIR}/cmake/module
[all...]
/llvm-project/clang/docs/
H A DHowToSetupToolingForLLVM.rst16 from the ``compile_commands.json`` file, generated by CMake. When
20 build using CMake to use clang tools.
22 Setup Clang Tooling Using CMake and Make
25 If you intend to use make to build LLVM, you should have CMake 2.8.6 or
26 later installed (can be found `here <https://cmake.org>`_).
28 First, you need to generate Makefiles for LLVM with CMake. You need to
29 make a build directory and run CMake from it:
35 $ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON path/to/llvm/sources
40 CMake variables.
56 Setup Clang Tooling Using CMake on Windows
[all …]
/llvm-project/llvm/utils/
H A Dcollect_and_build_with_pgo.py15 Eventually, it will be updated to instead call the cmake cache mentioned there.
51 cmake = _get_cmake_invocation_for_bootstrap_from(env, out_dir, skip_tablegens=False)
54 cmake.add_flag("CMAKE_BUILD_TYPE", "RelWithDebInfo")
56 _run_fresh_cmake(env, cmake, target_dir)
73 def __init__(self, cmake, maker, cmake_dir): argument
74 self._prefix = [cmake, "-G", maker, cmake_dir]
194 cmake="cmake", maker=env.get_cmake_maker(), cmake_dir=env.llvm_dir
203 cmake = _get_default_cmake_invocation(env)
204 cmake
230 _run_fresh_cmake(env, cmake, target_dir) global() argument
[all...]
/llvm-project/third-party/benchmark/
H A DREADME.md67 This describes the installation process using cmake. As pre-requisites, you'll
68 need git and cmake installed.
79 $ cmake -E make_directory "build"
80 # Generate build system files with cmake, and download any dependencies.
81 $ cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../
82 # or, starting with CMake 3.13, use a simpler form:
83 # cmake -DCMAKE_BUILD_TYPE=Release -S . -B "build"
85 $ cmake --build "build" --config Release
103 $ cmake -E chdir "build" ctest --build-config Release
109 sudo cmake --build "build" --config Release --target install
[all …]
/llvm-project/.github/workflows/containers/github-action-ci/
H A Dbootstrap.patch
/llvm-project/cmake/
H A DREADME.rst2 LLVM Common CMake Utils
8 These are CMake modules to be shared between LLVM projects strictly at build
9 time. In other words, they must not be included from an installed CMake module,
10 such as the ``Add*.cmake`` ones. Modules that are reachable from installed
11 modules should instead go in ``${project}/cmake/modules`` of the most upstream
15 ``llvm/cmake/modules`` is two-fold:
29 .. code-block:: cmake
32 set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
52 .. code-block:: cmake
54 set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)

12345678910>>...26