Skip to content

Commit c8cbfa1

Browse files
committed
chore(diag): capture mcpp link command
1 parent 16340bc commit c8cbfa1

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/diag-ut-macos.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,14 @@ jobs:
121121
done
122122
lldb -b -s /tmp/w.lldb -- ./ut_k2 2>&1 | sed -n '/disassemble/,$p' | head -35 || true
123123
echo "=== mcpp link command (verbose full) ==="
124-
"$MCPP" test -p boost-ext.ut -v 2>&1 | grep -iE "clang\+\+|ld |-o |libc\+\+" | head -15 || true
124+
"$MCPP" test -p boost-ext.ut -v > /tmp/mcpp_v.log 2>&1 || true
125+
grep -nE "clang\+\+.*(-o|\.o)|\.a |libc\+\+|static" /tmp/mcpp_v.log | head -20 || echo "(no link line found)"
126+
echo "--- full tail of verbose log ---"
127+
tail -30 /tmp/mcpp_v.log || true
128+
echo "=== mcpp build artifacts ==="
129+
find "$GITHUB_WORKSPACE/tests/examples/boost-ext.ut/.mcpp" -maxdepth 3 -name "*link*" -o -maxdepth 3 -name "*build*" -o -maxdepth 3 -name "*.ninja" 2>/dev/null | head -10 || true
130+
echo "=== ninja/build log for link cmd ==="
131+
find "$GITHUB_WORKSPACE/tests/examples/boost-ext.ut/.mcpp" -name "*.log" 2>/dev/null | head -5 || true
125132
echo "=== M3: system dylib ONLY via mcpp-style link (sanity: E variant) ==="
126133
$C -o ut_e2 obj/ut.o obj/boost.ut.m.o 2>&1 | tail -3 || true
127134
runit ut_e2 "E2(dylib only)"

0 commit comments

Comments
 (0)