blob: e61b58bdbbac235b98e7beeed82fbb3b4e7e8671 [file] [log] [blame]
#!/usr/bin/env bash
set -ex
# Usage:
# cd sdk
# ./tools/precompilation/test_linux.sh <dart-script-file>
./tools/build.py -mdebug -asimarm runtime
./out/DebugSIMARM/dart_no_snapshot --gen-precompiled-snapshot --package-root=out/DebugX64/packages/ "$1"
gcc -m32 -shared -Wl,-soname,libprecompiled.so -o libprecompiled.so precompiled.S
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD" gdb -ex run --args ./out/DebugSIMARM/dart_precompiled --run-precompiled-snapshot not_used.dart