Compiler driven development implementation for C++.
- CMake
- C++ compiler (e.g.,
clang
,gcc
, MSVC'scl
) and linker - git
# ninja (builds faster than the default CMake method)
git clone --depth=1 https://github.com/martine/ninja
./configure.py --bootstrap
sudo cp ninja /usr/local/bin
git clone --depth=1 https://github.com/llvm/llvm-project
mkdir llvm-project/build && cd $_
cmake -G Ninja ../llvm -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_BUILD_TESTS=ON
ninja
Prefix export
ed environment variables with absolute location that you cloned above^ to:
git clone https://github.com/offscale/cdd-cpp
export LLVM_DIR='llvm-project/build-ninja/lib/cmake/llvm'
export Clang_DIR='llvm-project/build-ninja/lib/cmake/clang'
mkdir cdd-cpp/cmake-build-release && cd $_
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.