OLD | NEW |
1 #!/bin/bash -ex | 1 #!/usr/bin/env bash |
2 | 2 |
| 3 set -ex |
| 4 |
3 # Usage: | 5 # Usage: |
4 # cd sdk | 6 # cd sdk |
5 # ./tools/precompilation/test_macos.sh <dart-script-file> | 7 # ./tools/precompilation/test_macos.sh <dart-script-file> |
6 | 8 |
7 ./tools/build.py -mdebug -ax64 runtime | 9 ./tools/build.py -mdebug -ax64 runtime |
8 | 10 |
9 ./xcodebuild/DebugX64/dart_no_snapshot --gen-precompiled-snapshot --package-root
=xcodebuild/DebugX64/packages/ "$1" | 11 ./xcodebuild/DebugX64/dart_no_snapshot --gen-precompiled-snapshot --package-root
=xcodebuild/DebugX64/packages/ "$1" |
10 | 12 |
11 clang -m64 -dynamiclib -o libprecompiled.dylib precompiled.S | 13 clang -m64 -dynamiclib -o libprecompiled.dylib precompiled.S |
12 | 14 |
13 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD" lldb -- ./xcodebuild/DebugX64/dart_preco
mpiled --run-precompiled-snapshot not_used.dart | 15 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD" lldb -- ./xcodebuild/DebugX64/dart_preco
mpiled --run-precompiled-snapshot not_used.dart |
OLD | NEW |