[llvm] [CI] Tee Ninja Output to Log Files (PR #152331)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 7 10:09:13 PDT 2025


================
@@ -100,12 +100,12 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
 start-group "ninja"
 
 # Targets are not escaped as they are passed as separate arguments.
-ninja -C "${BUILD_DIR}" -k 0 ${targets}
+ninja -C "${BUILD_DIR}" -k 0 ${targets} | tee ninja.log
----------------
cmtice wrote:

It might be better to use "|& tee" rather than "| tee", so you captures stderr as well as stdout.  If you make the change, please do it everywhere.

https://github.com/llvm/llvm-project/pull/152331


More information about the llvm-commits mailing list