Skip to content

Commit

Permalink
Update lint-cpp.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored Dec 15, 2024
1 parent ef84a65 commit aec6bc2
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .ci/lint-cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,20 @@
set -e -E -u -o pipefail

echo "running include-what-you-use"
cmake -B build -S . -DCMAKE_C_INCLUDE_WHAT_YOU_USE="include-what-you-use;-Xiwyu;any;-Xiwyu;iwyu;-Xiwyu;args" -DCMAKE_CXX_INCLUDE_WHAT_YOU_USE="include-what-you-use;-Xiwyu;any;-Xiwyu;iwyu;-Xiwyu;args" -G Ninja
cmake --build build -j4 || true
# cmake -B build -S . -DCMAKE_C_INCLUDE_WHAT_YOU_USE="include-what-you-use;-Xiwyu;any;-Xiwyu;iwyu;-Xiwyu;args" -DCMAKE_CXX_INCLUDE_WHAT_YOU_USE="include-what-you-use;-Xiwyu;any;-Xiwyu;iwyu;-Xiwyu;args" -G Ninja
# cmake --build build -j4 || true
cmake \
-B build \
-S . \
-DCMAKE_C_INCLUDE_WHAT_YOU_USE=include-what-you-use \
-DCMAKE_CXX_INCLUDE_WHAT_YOU_USE=include-what-you-use

cmake \
--build build \
--target _lightgbm \
2>&1 \
| tee ./logs.txt \
| cat
echo "done running include-what-you-use"

# echo "running cpplint"
Expand Down

0 comments on commit aec6bc2

Please sign in to comment.