mirror of
https://github.com/touchHLE/touchHLE.git
synced 2026-01-31 01:25:24 +01:00
Adds the --dump=linking-info flag, which dumps the classes, selectors, and functions required by the binary, along with info about the symbol as JSON to stdout. Change-Id: I87e6db91fc68aecaa8dd3c516676aa81c2c34209
17 lines
694 B
Bash
Executable File
17 lines
694 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# No set -e, since touchHLE can exit with an error
|
|
|
|
if [[ -z "$1" ]]
|
|
then
|
|
echo 'Usage: ./log_unimplemented.sh [name of app to check]'
|
|
exit 1
|
|
else
|
|
cargo run -- --dump=linking-info "$1"
|
|
cat DUMP.txt | jq --slurp '{
|
|
"unimplemented_classes": ([.[] | select(.object == "classes") | .classes[] | select(.class_type == "unimplemented") | .name] | sort),
|
|
"unused_selectors": ([.[] | select(.object == "selectors") | .selectors[] | select(.instance_implementations or .class_implementations | not) | .selector] | sort),
|
|
"unlinked_symbols": ([.[] | select(.object == "lazy_symbols") | .symbols[] | select(.linked_to | not) | .symbol] | sort),
|
|
}'
|
|
fi
|