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