File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -327,6 +327,29 @@ jobs:
327327 "$MCPP" self config --mirror GLOBAL
328328 "$MCPP" test
329329
330+ - name : " TEMP forensics: static libc++ exit-abort matrix (remove before merge)"
331+ if : always()
332+ run : |
333+ set +e
334+ LLVM="$LLVM_ROOT"
335+ SDK=$(xcrun --show-sdk-path)
336+ cat > /tmp/probe.cpp <<'PEOF'
337+ #include <iostream>
338+ int main() { std::cout << "hi" << std::endl; return 0; }
339+ PEOF
340+ run_mode() {
341+ echo "=== mode: $1 ==="
342+ shift
343+ "$LLVM/bin/clang++" --no-default-config -std=c++17 -nostdinc++ -isystem "$LLVM/include/c++/v1" --sysroot="$SDK" -mmacosx-version-min=11.0 -fuse-ld=lld /tmp/probe.cpp -o /tmp/probe "$@" 2>&1 | head -5
344+ otool -L /tmp/probe | grep -E "libc|probe" | head -4
345+ /tmp/probe
346+ echo "exit=$?"
347+ }
348+ run_mode dylib -stdlib=libc++
349+ run_mode direct -nostdlib++ "$LLVM/lib/libc++.a" "$LLVM/lib/libc++abi.a"
350+ run_mode hidden -nostdlib++ -L"$LLVM/lib" -Wl,-hidden-lc++ -Wl,-hidden-lc++abi
351+ exit 0
352+
330353 - name : E2E suite
331354 # See ci-linux.yml — fail-fast on hung tests instead of burning the
332355 # whole job budget. Per-test 600s timeout lives in run_all.sh.
You can’t perform that action at this time.
0 commit comments