4aee51762a
Extends symbol extraction to mixed Swift+C-family packages via clangd multiplexing through sourcekit-lsp: new CFamilyDeclarationParser, CompilationDatabaseWriter, ObjectiveCShimWriter, SourceLanguage detection, PathFilter, and ShapeSnapshot, plus a shared DeclarationParser contract and build/test scripts.
13 lines
473 B
Bash
Executable File
13 lines
473 B
Bash
Executable File
#!/bin/bash
|
|
LIBAVCODEC_MAJOR=$(pkg-config --modversion libavcodec 2>/dev/null | cut -d. -f1)
|
|
export LIBAVCODEC_MAJOR="${LIBAVCODEC_MAJOR:-0}"
|
|
OUTFILE=$(mktemp /tmp/build_output_XXXXXX.txt)
|
|
swift build >"$OUTFILE" 2>&1
|
|
STATUS=$?
|
|
grep -E "^/home/$(whoami)/Projects/CodeMapper/Sources/.*error:" "$OUTFILE" | sed "s|/home/$(whoami)/Projects/CodeMapper/||" | head -10
|
|
if [ $STATUS -eq 0 ]; then
|
|
echo "Build succeeded."
|
|
else
|
|
echo "Build FAILED. Full output: $OUTFILE"
|
|
fi
|