OLD | NEW |
1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash |
2 | 2 |
3 set -ex | 3 set -ex |
4 | 4 |
5 # Usage: | 5 # Usage: |
6 # cd sdk | 6 # cd sdk |
7 # ./tools/precompilation/test_linux.sh <dart-script-file> | 7 # ./tools/precompilation/test_linux.sh <dart-script-file> |
8 | 8 |
9 ./tools/build.py -mdebug -asimarm runtime | 9 ./tools/build.py -mdebug -asimarm runtime |
10 | 10 |
11 ./out/DebugSIMARM/dart_no_snapshot --gen-precompiled-snapshot --package-root=out
/DebugX64/packages/ "$1" | 11 ./out/DebugSIMARM/dart_no_snapshot --gen-precompiled-snapshot --package-root=out
/DebugX64/packages/ "$1" |
12 | 12 |
13 gcc -m32 -shared -Wl,-soname,libprecompiled.so -o libprecompiled.so precompiled.
S | 13 gcc -m32 -shared -Wl,-soname,libprecompiled.so -o libprecompiled.so precompiled.
S |
14 | 14 |
15 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD" gdb -ex run --args ./out/DebugSIMARM/dar
t_precompiled --run-precompiled-snapshot not_used.dart | 15 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD" gdb -ex run --args ./out/DebugSIMARM/dar
t_precompiled_runtime --run-precompiled-snapshot not_used.dart |
OLD | NEW |