diff --git a/.ci/lint-cpp.sh b/.ci/lint-cpp.sh index e10d8040fde3..82c7c288cca4 100755 --- a/.ci/lint-cpp.sh +++ b/.ci/lint-cpp.sh @@ -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"