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_macos.sh <dart-script-file> | 7 # ./tools/precompilation/test_macos.sh <dart-script-file> |
8 | 8 |
9 ./tools/build.py -mdebug -ax64 runtime | 9 ./tools/build.py -mdebug -ax64 runtime |
10 | 10 |
11 ./xcodebuild/DebugX64/dart_bootstrap --gen-precompiled-snapshot --package-root=x
codebuild/DebugX64/packages/ "$1" | 11 ./xcodebuild/DebugX64/dart_bootstrap --gen-precompiled-snapshot --package-root=x
codebuild/DebugX64/packages/ "$1" |
12 | 12 |
13 clang -nostartfiles -m64 -dynamiclib -o libprecompiled.dylib precompiled.S | 13 clang -nostartfiles -m64 -dynamiclib -o libprecompiled.dylib precompiled.S |
14 | 14 |
15 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD" lldb -- ./xcodebuild/DebugX64/dart_preco
mpiled_runtime --run-precompiled-snapshot not_used.dart | 15 lldb -- ./xcodebuild/DebugX64/dart_precompiled_runtime --run-precompiled-snapsho
t=$PWD not_used.dart |
OLD | NEW |