| /netbsd-src/external/apache2/llvm/dist/llvm/utils/ |
| H A D | check_ninja_deps.py | 3 # ======- check-ninja-deps - build debugging script ----*- python -*--========# 7 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 9 # ==------------------------------------------------------------------------==# 11 """Script to find missing formal dependencies in a build.ninja file. 15 executed after the Tablegen build step that generates the header. So the 16 dependency graph in build.ninja should have the Tablegen build step as an 17 ancestor of the C++ one. If it does not, then there's a latent build-failure 18 bug, because depending on the order that ninja chooses to schedule its build 19 steps, the C++ build step could run first, and fail because the header it needs 23 not notice, if your local test build happens to succeed. What you'd like is a [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/docs/ |
| H A D | HowToSetupToolingForLLVM.rst | 7 of specific tools using this infrastructure (e.g. ``clang-check``). This 14 Clang Tooling needs a compilation database to figure out specific build 17 invoking clang tools, you can either specify a path to a build directory 18 using a command line parameter ``-p`` or let Clang Tooling find this 20 build using CMake to use clang tools. 25 If you intend to use make to build LLVM, you should have CMake 2.8.6 or 29 make a build directory and run CMake from it: 31 .. code-block:: console 33 $ mkdir your/build/directory 34 $ cd your/build/directory [all …]
|
| H A D | LibASTMatchersTutorial.rst | 5 This document is intended to show how to build a useful source-to-source 23 .. code-block:: console 25 cd ~/clang-llvm 26 git clone https://github.com/llvm/llvm-project.git 28 Next you need to obtain the CMake build system and Ninja build tool. 30 .. code-block:: console 32 cd ~/clang-llvm 33 git clone https://github.com/martine/ninja.git 34 cd ninja 37 sudo cp ninja /usr/bin/ [all …]
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/ |
| H A D | check_cmake.sh | 2 set -u 3 set -e 6 if [ -d "$ROOT/llvm-build" ]; then 7 cd $ROOT/llvm-build 9 mkdir -p $ROOT/llvm-build 10 cd $ROOT/llvm-build 11 …CC=clang CXX=clang++ cmake -G Ninja -DLLVM_ENABLE_WERROR=ON -DCMAKE_BUILD_TYPE=Release -DLLVM_ENAB… 13 ninja 14 ninja check-sanitizer 15 ninja check-tsan [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/docs/ |
| H A D | AdvancedBuilds.rst | 2 Advanced Build Configurations 11 `CMake <http://www.cmake.org/>`_ is a cross-platform build-generator tool. CMake 12 does not build the project, it generates the files needed by your build tool 25 The Clang CMake build system supports bootstrap (aka multi-stage) builds. At a 26 high level a multi-stage build is a chain of builds that pass data from one 28 bootstrap build. 30 In a simple two-stage bootstrap build, we build clang using the system compiler, 31 then use that just-built clang to build clang again. In CMake this simplest form 32 of a bootstrap build can be configured with a single option, 35 .. code-block:: console [all …]
|
| H A D | HowToCrossCompileLLVM.rst | 2 How To Cross-Compile Clang/LLVM using Clang/LLVM 11 For more information on how to use Clang as a cross-compiler, 16 Cross-Compiling from x86_64 to ARM 19 In this use case, we'll be using CMake and Ninja, on a Debian-based Linux 20 system, cross-compiling from an x86_64 host (most Intel and AMD chips 21 nowadays) to a hard-float ARM target (most ARM targets nowadays). 26 * ``ninja-build`` (from backports in Ubuntu) 27 * ``gcc-4.7-arm-linux-gnueabihf`` 28 * ``gcc-4.7-multilib-arm-linux-gnueabihf`` 29 * ``binutils-arm-linux-gnueabihf`` [all …]
|
| H A D | HowToBuildOnARM.rst | 2 How To Build On ARM 11 This document is *NOT* tailored to help you cross-compile LLVM/Clang 13 out more about cross-compiling, please check :doc:`HowToCrossCompileLLVM`. 22 Pandaboard, have become hard-float platforms. There are a number of 27 fail due to insufficient memory. It's also a lot quicker to only build 28 the relevant back-ends (ARM and AArch64), since it's very unlikely that 29 you'll use an ARM board to cross-compile to other arches. If you're 30 running Compiler-RT tests, also include the x86 back-end, or some tests 33 .. code-block:: bash 35 cmake $LLVM_SRC_DIR -DCMAKE_BUILD_TYPE=Release \ [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/utils/docker/debian8/ |
| H A D | Dockerfile | 1 #===- llvm/utils/docker/debian8/build/Dockerfile -------------------------===// 5 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 #===----------------------------------------------------------------------===// 8 # Stage 1. Check out LLVM source code and run the build. 11 # Install build dependencies of llvm. 14 sed 's/^deb/deb-src /g' >> /etc/apt/sources.list 16 RUN apt-get update && \ 17 apt-get install -y --no-install-recommends ca-certificates gnupg \ 18 build-essential python wget subversion unzip && \ 19 rm -rf /var/lib/apt/lists/* [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/tools/clang-fuzzer/ |
| H A D | Dockerfile | 1 #===- llvm/tools/clang/tools/clang-fuzzer ---------------------------------===// 5 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 #===----------------------------------------------------------------------===// 8 # Produces an image that builds clang-proto-fuzzer 10 RUN apt-get update -y 11 RUN apt-get install -y autoconf automake libtool curl make g++ unzip wget git \ 12 binutils liblzma-dev libz-dev python-all cmake ninja-build subversion \ 13 pkg-config docbook2x 18 RUN wget -qO- https://github.com/google/protobuf/releases/download/v3.3.0/protobuf-cpp-3.3.0.tar.gz… 19 RUN cd protobuf-3.3.0 && ./autogen.sh && ./configure && make -j $(nproc) && make check -j $(nproc) … [all …]
|
| H A D | README.txt | 1 This directory contains three utilities for fuzzing Clang: clang-fuzzer, 2 clang-objc-fuzzer, and clang-proto-fuzzer. All use libFuzzer to generate inputs 3 to clang via coverage-guided mutation. 6 clang-fuzzer makes no attempt to generate valid C++ programs and is therefore 9 clang-objc-fuzzer is similar but for Objective-C: it makes no attempt to 10 generate a valid Objective-C program. 12 clang-proto-fuzzer uses a protobuf class to describe a subset of the C++ 13 language and then uses libprotobuf-mutator to mutate instantiations of that 15 clang-proto-fuzzer is better at stressing deeper layers of Clang and LLVM. 20 Building clang-fuzzer [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/utils/analyzer/ |
| H A D | entrypoint.py | 28 def parse_arguments() -> Tuple[argparse.Namespace, List[str]]: 30 parser.add_argument('--wait', action='store_true') 31 parser.add_argument('--build-llvm', action='store_true') 32 parser.add_argument('--build-llvm-only', action='store_true') 37 os.chdir('/build') 41 ninja() 43 print("Build failed!") 48 return "build.ninja" not in os.listdir() 51 CMAKE_COMMAND = "cmake -G Ninja -DCMAKE_BUILD_TYPE=Release " \ 52 "-DCMAKE_INSTALL_PREFIX=/analyzer -DLLVM_TARGETS_TO_BUILD=X86 " \ [all …]
|
| /netbsd-src/external/apache2/llvm/dist/libcxx/utils/ci/ |
| H A D | run-buildbot | 2 #===----------------------------------------------------------------------===## 6 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 8 #===----------------------------------------------------------------------===## 10 set -ex 11 set -o pipefail 23 [-h|--help] Display this help and exit. 25 --llvm-root <DIR> Path to the root of the LLVM monorepo. By default, we try 28 --build-dir <DIR> The directory to use for building the library. By default, 29 this is '<llvm-root>/build/<builder>'. 31 --osx-roots <DIR> Path to pre-downloaded macOS dylibs. By default, we download [all …]
|
| /netbsd-src/external/mit/libuv/dist/.github/workflows/ |
| H A D | sanitizer.yml | 6 - '**' 7 - '!docs/**' 8 - '!.**' 9 - '.github/workflows/sanitizer.yml' 12 - v[0-9].* 13 - master 17 runs-on: ubuntu-latest 19 - uses: actions/checkout@v2 20 - name: Setup 22 sudo apt-get install ninja-build [all …]
|
| H A D | CI-sample.yml | 1 name: ci-sample 6 - '**' 7 - '!docs/**' 8 - '!.**' 9 - '.github/workflows/CI-sample.yml' 12 - v[0-9].* 13 - master 16 build: 18 fail-fast: false 20 os: [macos-latest, ubuntu-latest, windows-latest] [all …]
|
| /netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/ |
| H A D | .gitignore | 27 # in-source build. 38 # ninja generated files. 41 build.ninja 43 rules.ninja 46 bazel-* 48 # out-of-source build top-level folders. 49 build/ 51 build*/ 53 # in-source dependencies
|
| /netbsd-src/external/apache2/llvm/dist/libcxx/docs/ |
| H A D | BuildingLibcxx.rst | 16 Xcode 4.2 or later. However if you want to install tip-of-trunk from here 19 The following instructions describe how to checkout, build, test and 27 * Replacing your systems libc++ installation could render the system non-functional. 30 .. code-block:: bash 32 $ git clone https://github.com/llvm/llvm-project.git 33 $ cd llvm-project 34 $ mkdir build && cd build 35 $ cmake -DCMAKE_C_COMPILER=clang \ 36 -DCMAKE_CXX_COMPILER=clang++ \ 37 -DLLVM_ENABLE_PROJECTS="libcxx;libcxxabi" \ [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/cmake/modules/ |
| H A D | TableGen.cmake | 11 # Use depfile instead of globbing arbitrary *.td(s) for Ninja. 12 if(CMAKE_GENERATOR STREQUAL "Ninja") 13 # Make output path relative to build.ninja, assuming located on 15 # CMake emits build targets as relative paths but Ninja doesn't identify 16 # absolute path (in *.d) as relative path (in build.ninja) 21 -o ${ofn_rel} 22 -d ${ofn_rel}.d 32 -o ${CMAKE_CURRENT_BINARY_DIR}/${ofn} 43 list(FIND ARGN "-gen-dag-isel" idx) 44 if( NOT idx EQUAL -1 ) [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/utils/gn/ |
| H A D | README.rst | 13 *Warning* The GN build is experimental and best-effort. It might not work, 15 necessary. LLVM's official build system is CMake, if in doubt use that. 16 If you add files, you're expected to update the CMake build but you don't need 17 to update GN build files. Reviewers should not ask authors to update GN build 18 files. Keeping the GN build files up-to-date is on the people who use the GN 19 build. 22 creates ninja files, but it can create some IDE projects (MSVC, Xcode, ...) 23 which then shell out to ninja for the actual build. 25 The main motivation behind the GN build is that some people find it more 26 convenient for day-to-day hacking on LLVM than CMake. Distribution, building [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/utils/release/ |
| H A D | build_llvm_package.bat | 11 REM Visual Studio 2019, CMake, Ninja, GNUWin32, SWIG, Python 3, 13 REM Visual Studio 2019 SDK and Nuget (for the clang-format plugin), 14 REM Perl (for the OpenMP run-time), 7Zip. 24 set python32_dir=C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python36-32 27 for /f "usebackq" %%i in (`PowerShell ^(Get-Date^).ToString^('yyyyMMdd'^)`) do set datestamp=%%i 30 set package_version=13.0.0-%revision:~0,8% 37 echo Build dir: %build_dir% 45 curl -L https://github.com/llvm/llvm-project/archive/%revision%.zip -o src.zip || exit /b 47 mv llvm-project-* llvm-project || exit /b 51 -DCMAKE_BUILD_TYPE=Release ^ [all …]
|
| H A D | test-release.sh | 2 #===-- test-release.sh - Test the LLVM release candidates ------------------===# 6 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 8 #===------------------------------------------------------------------------===# 10 # Download, build, and test the release candidate for an LLVM release. 12 #===------------------------------------------------------------------------===# 14 System=`uname -s` 23 Base_url="http://llvm.org/svn/llvm-project" 51 echo "usage: `basename $0` -release X.Y.Z -rc NUM [OPTIONS]" 53 echo " -release X.Y.Z The release version to test." 54 echo " -rc NUM The pre-release candidate number." [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/bindings/go/ |
| H A D | build.sh | 1 #!/bin/sh -xe 9 mkdir -p $llvm_builddir 12 llvm_config="$llvm_builddir/bin/llvm-config" 13 llvm_go="$llvm_builddir/bin/llvm-go" 15 if test -n "`which ninja`" ; then 16 # If Ninja is available, we can speed up the build by building only the 18 (cd $llvm_builddir && cmake -G Ninja $cmake_flags) 19 ninja -C $llvm_builddir llvm-config llvm-go 20 llvm_components="$($llvm_go print-components)" 21 llvm_buildtargets="$($llvm_config --libs $llvm_components | sed -e 's/-l//g')" [all …]
|
| /netbsd-src/external/apache2/llvm/dist/libcxx/ |
| H A D | appveyor.yml | 1 version: '{build}' 5 build: 9 - Debug 13 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 14 CMAKE_OPTIONS: -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe 16 …ATH: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat 18 GENERATOR: Ninja 19 MAKE_PROGRAM: ninja 21 # TODO: Maybe re-enable this configuration? Do we want to support MSVC 2015's runtime? 22 # - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 [all …]
|
| H A D | appveyor-reqs-install.cmd | 11 if NOT EXIST llvm-installer.exe ( 12 …yor DownloadFile https://prereleases.llvm.org/win-snapshots/LLVM-9.0.0-r357435-win32.exe -FileName… 15 START /WAIT llvm-installer.exe /S /D=C:\"Program Files\LLVM" 18 if DEFINED CLANG_VERSION clang-cl -v 20 if DEFINED MINGW_PATH rename "C:\Program Files\Git\usr\bin\sh.exe" "sh-ignored.exe" 23 if DEFINED MINGW_PATH g++ -v 29 appveyor DownloadFile https://cmake.org/files/v3.7/cmake-3.7.2-win64-x64.zip -FileName cmake.zip 30 7z x cmake.zip -oC:\projects\deps > nul 31 move C:\projects\deps\cmake-* C:\projects\deps\cmake 35 cmake --version [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/utils/gn/secondary/clang-tools-extra/clangd/test/ |
| H A D | BUILD.gn | 1 import("//clang-tools-extra/clangd/xpc/enable.gni") 3 import("//llvm/utils/gn/build/libs/zlib/enable.gni") 4 import("//llvm/utils/gn/build/write_cmake_config.gni") 20 # Fully-qualified instead of relative for LIT_SITE_CFG_IN_HEADER. 21 input = "//clang-tools-extra/clangd/test/lit.site.cfg.py.in" 26 rebase_path(get_label_info("//clang-tools-extra/clangd/test", 29 rebase_path("//clang-tools-extra/clangd/test"), 35 "LLVM_LIT_TOOLS_DIR=", # Intentionally empty, matches cmake build. 55 # Fully-qualified instead of relative for LIT_SITE_CFG_IN_HEADER. 56 input = "//clang-tools-extra/clangd/unittests/lit.site.cfg.py.in" [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/utils/gn/secondary/clang-tools-extra/test/ |
| H A D | BUILD.gn | 1 import("//clang-tools-extra/clang-tidy/enable.gni") 4 import("//llvm/utils/gn/build/write_cmake_config.gni") 14 rebase_path(get_label_info("//clang-tools-extra", "target_out_dir")), 15 "CLANG_TOOLS_SOURCE_DIR=" + rebase_path("//clang-tools-extra"), 20 # See comment for Windows solink in llvm/utils/gn/build/toolchain/BUILD.gn 30 # Fully-qualified instead of relative for LIT_SITE_CFG_IN_HEADER. 31 input = "//clang-tools-extra/test/lit.site.cfg.py.in" 36 "LLVM_LIT_TOOLS_DIR=", # Intentionally empty, matches cmake build. 49 # Fully-qualified instead of relative for LIT_SITE_CFG_IN_HEADER. 50 input = "//clang-tools-extra/test/Unit/lit.site.cfg.py.in" [all …]
|