f47839ba09
To avoid future confusion with precompiler compiler-related macros/build targets BUG= R=rmacnak@google.com Review URL: https://codereview.chromium.org/1581393008 .
16 lines
486 B
Bash
Executable File
16 lines
486 B
Bash
Executable File
#!/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_runtime --run-precompiled-snapshot not_used.dart
|