[build] Install dartaotruntime to /usr/bin in the Debian package.
This removes a discrepancy in what is on PATH when installing the SDK via the Debian package versus unpacking the ZIP and adding dart-sdk/bin to PATH. Bug: https://github.com/dart-lang/sdk/issues/49293 Cq-Include-Trybots: luci.dart.try:dart-sdk-linux-try Change-Id: I57361cc090449dd4fd7a8e4ebbc60ace71af11fb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/431741 Commit-Queue: Ryan Macnak <rmacnak@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>
This commit is contained in:
committed by
Commit Queue
parent
9f0e5229fa
commit
72ee5445c3
@@ -1,2 +1,3 @@
|
||||
usr/lib/dart/bin/dart usr/bin/dart
|
||||
usr/lib/dart/bin/dartaotruntime usr/bin/dartaotruntime
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ set -ex
|
||||
debfile="$1"
|
||||
checkout=$(pwd)
|
||||
|
||||
# api.buildbucket.gitiles_commit.id is not populated in try jobs :(
|
||||
if [ ! -f $debfile ]; then
|
||||
echo "warning: $debfile does not exist"
|
||||
version=$(tools/debian_package/get_version.py)
|
||||
debfile="out/ReleaseX64/dart_${version}-1_amd64.deb"
|
||||
fi
|
||||
|
||||
function test_image() {
|
||||
image="$1"
|
||||
docker run -v $checkout:$checkout -w $checkout -i --rm $image tools/debian_package/test_debian_package_inside_docker.sh $debfile
|
||||
|
||||
@@ -22,7 +22,11 @@ dart analyze /tmp/hello.dart
|
||||
# Test VM JIT
|
||||
dart /tmp/hello.dart
|
||||
|
||||
# Test VM AOT
|
||||
# Test VM AOT - proper library, dartaotruntime on PATH
|
||||
dart compile aot-snapshot -o /tmp/libhello.so /tmp/hello.dart
|
||||
dartaotruntime /tmp/libhello.so
|
||||
|
||||
# Test VM AOT - self-contained executable
|
||||
dart compile exe -o /tmp/hello.exe /tmp/hello.dart
|
||||
/tmp/hello.exe
|
||||
|
||||
|
||||
Reference in New Issue
Block a user