Index: tools/precompilation/test_linux_simarm.sh |
diff --git a/tools/precompilation/test_linux_simarm.sh b/tools/precompilation/test_linux_simarm.sh |
new file mode 100755 |
index 0000000000000000000000000000000000000000..b55a5e96af33d45d3a7a408ca1a9aaba22e84eb3 |
--- /dev/null |
+++ b/tools/precompilation/test_linux_simarm.sh |
@@ -0,0 +1,13 @@ |
+#!/bin/bash -ex |
+ |
+# Usage: |
+# cd sdk |
+# ./tools/precompilation/test_linux.sh |
+ |
+./tools/build.py -mdebug -asimarm runtime |
+ |
+./out/DebugSIMARM/dart_no_snapshot --gen-precompiled-snapshot ~/hello.dart |
+ |
+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 --run-precompiled-snapshot not_used.dart |