Use unity builds to speed up clang-tidy runtime

This commit is contained in:
Chris Thrasher 2023-03-06 15:32:56 -07:00
parent 90f05ac4e8
commit b6c54ac589
2 changed files with 3 additions and 1 deletions

View File

@ -169,7 +169,7 @@ jobs:
- name: Configure - name: Configure
shell: bash shell: bash
run: cmake -S $GITHUB_WORKSPACE -B $GITHUB_WORKSPACE/build -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DSFML_BUILD_EXAMPLES=TRUE -DSFML_BUILD_TEST_SUITE=TRUE ${{matrix.platform.flags}} run: cmake -S $GITHUB_WORKSPACE -B $GITHUB_WORKSPACE/build -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_UNITY_BUILD=ON -DSFML_BUILD_EXAMPLES=TRUE -DSFML_BUILD_TEST_SUITE=TRUE ${{matrix.platform.flags}}
- name: Analyze Code - name: Analyze Code
shell: bash shell: bash

View File

@ -18,5 +18,7 @@ namespace sf
{ {
class VideoMode; class VideoMode;
// Required because WindowUtil.cpp doesn't include WindowUtil.hpp
// NOLINTNEXTLINE(readability-redundant-declaration)
std::ostream& operator<<(std::ostream& os, const VideoMode& videoMode); std::ostream& operator<<(std::ostream& os, const VideoMode& videoMode);
} // namespace sf } // namespace sf