Skip to content

Commit

Permalink
Overhaul CMake build. See history in origin/cmake-modern-history.
Browse files Browse the repository at this point in the history
Fixes #870
Fixes #2643
Fixes #2821
Fixes #2852
Fixes #2942
Fixes #3658
Fixes #4009
Fixes #4284
Fixes #4476
Fixes #4581
Fixes #4893
Fixes #4895
  • Loading branch information
alexreinking committed May 12, 2020
1 parent 80c8285 commit 4d2dc2f
Show file tree
Hide file tree
Showing 123 changed files with 5,449 additions and 8,436 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ jobs:
- uses: actions/checkout@v2
- name: Install clang-tidy
run: |
sudo apt-get install llvm-9 clang-tidy-9
sudo apt-get install llvm-9 clang-9 libclang-9-dev clang-tidy-9
sudo apt-get remove llvm-8 clang-8 libclang-8-dev clang-tidy-8
- name: Build Compilation DB
run: |
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DHALIDE_REQUIRE_LLVM_VERSION=90 -S . -B build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_DIR=/usr/lib/llvm-9/lib/cmake/llvm -S . -B build
[ -a build/compile_commands.json ]
- name: Run clang-tidy
run: |
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ build-osx/*
cmake_build*/*
*/build/*
tmp/*
doc/*
include/*
distrib/*
testing/*
Expand Down Expand Up @@ -89,3 +88,5 @@ src/.tags_sorted_by_file

/.vs
/CMakeSettings.json
/venv/
/cmake-build-*/
Loading

0 comments on commit 4d2dc2f

Please sign in to comment.