[S] Change in dart/sdk[main]: Reland "[build] Make `build_analyze_snapshot` consistent between the ...

0 views
Skip to first unread message

Ryan Macnak (Gerrit)

unread,
Feb 7, 2023, 12:31:56 PM2/7/23
to rev...@dartlang.org, vm-...@dartlang.org, Daco Harkes, Commit Queue

Attention is currently required from: Daco Harkes.

View Change

    To view, visit change 281460. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: sdk
    Gerrit-Branch: main
    Gerrit-Change-Id: I8e991d361b5defaa52b62a78d515a7639a6dfba0
    Gerrit-Change-Number: 281460
    Gerrit-PatchSet: 1
    Gerrit-Owner: Ryan Macnak <rma...@google.com>
    Gerrit-Reviewer: Daco Harkes <dacoh...@google.com>
    Gerrit-Reviewer: Ryan Macnak <rma...@google.com>
    Gerrit-Attention: Daco Harkes <dacoh...@google.com>
    Gerrit-Comment-Date: Tue, 07 Feb 2023 17:31:53 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Ryan Macnak (Gerrit)

    unread,
    Feb 7, 2023, 12:31:56 PM2/7/23
    to Daco Harkes, rev...@dartlang.org, vm-...@dartlang.org

    Attention is currently required from: Daco Harkes.

    Ryan Macnak would like Daco Harkes to review this change.

    View Change

    Reland "[build] Make `build_analyze_snapshot` consistent between the host and target toolchains."

    Also create this target for Fuchsia, which like Linux and Android uses ELF.

    Bug: https://github.com/dart-lang/sdk/issues/51242
    Change-Id: I8e991d361b5defaa52b62a78d515a7639a6dfba0
    ---
    M runtime/runtime_args.gni
    1 file changed, 16 insertions(+), 3 deletions(-)

    diff --git a/runtime/runtime_args.gni b/runtime/runtime_args.gni
    index 0c4f1ea..ba761a2 100644
    --- a/runtime/runtime_args.gni
    +++ b/runtime/runtime_args.gni
    @@ -89,9 +89,10 @@
    # which is already linked in the VM.
    create_kernel_service_snapshot = dart_target_arch == "x64"

    - # The analyze_snapshot tool is only supported on 64 bit AOT builds running
    - # under linux and android platforms
    + # The analyze_snapshot tool is only supported on 64 bit AOT builds that use
    + # ELF.
    build_analyze_snapshot =
    - (is_linux || is_android) &&
    + (target_os == "linux" || target_os == "android" ||
    + target_os == "fuchsia") &&
    (dart_target_arch == "x64" || dart_target_arch == "arm64")
    }

    To view, visit change 281460. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: sdk
    Gerrit-Branch: main
    Gerrit-Change-Id: I8e991d361b5defaa52b62a78d515a7639a6dfba0
    Gerrit-Change-Number: 281460
    Gerrit-PatchSet: 1
    Gerrit-Owner: Ryan Macnak <rma...@google.com>
    Gerrit-Reviewer: Daco Harkes <dacoh...@google.com>
    Gerrit-Reviewer: Ryan Macnak <rma...@google.com>
    Gerrit-Attention: Daco Harkes <dacoh...@google.com>
    Gerrit-MessageType: newchange

    Daco Harkes (Gerrit)

    unread,
    Feb 7, 2023, 12:46:43 PM2/7/23
    to Ryan Macnak, rev...@dartlang.org, vm-...@dartlang.org, Commit Queue

    Attention is currently required from: Ryan Macnak.

    Patch set 1:Code-Review +1

    View Change

    1 comment:

    To view, visit change 281460. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: sdk
    Gerrit-Branch: main
    Gerrit-Change-Id: I8e991d361b5defaa52b62a78d515a7639a6dfba0
    Gerrit-Change-Number: 281460
    Gerrit-PatchSet: 1
    Gerrit-Owner: Ryan Macnak <rma...@google.com>
    Gerrit-Reviewer: Daco Harkes <dacoh...@google.com>
    Gerrit-Reviewer: Ryan Macnak <rma...@google.com>
    Gerrit-Attention: Ryan Macnak <rma...@google.com>
    Gerrit-Comment-Date: Tue, 07 Feb 2023 17:46:37 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    CBuild (Gerrit)

    unread,
    Feb 7, 2023, 1:03:15 PM2/7/23
    to Ryan Macnak, rev...@dartlang.org, vm-...@dartlang.org, Daco Harkes, Commit Queue

    Attention is currently required from: Ryan Macnak.

    go/dart-cbuild result: FAILURE (NO REGRESSIONS DETECTED)

    Details: https://goto.google.com/dart-cbuild/find/c0cee053f203b2a513d7ff9d689f6fa55067ade3

    View Change

      To view, visit change 281460. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: sdk
      Gerrit-Branch: main
      Gerrit-Change-Id: I8e991d361b5defaa52b62a78d515a7639a6dfba0
      Gerrit-Change-Number: 281460
      Gerrit-PatchSet: 1
      Gerrit-Owner: Ryan Macnak <rma...@google.com>
      Gerrit-Reviewer: Daco Harkes <dacoh...@google.com>
      Gerrit-Reviewer: Ryan Macnak <rma...@google.com>
      Gerrit-Attention: Ryan Macnak <rma...@google.com>
      Gerrit-Comment-Date: Tue, 07 Feb 2023 18:03:11 +0000

      Ryan Macnak (Gerrit)

      unread,
      Feb 7, 2023, 1:36:31 PM2/7/23
      to rev...@dartlang.org, vm-...@dartlang.org, CBuild, Daco Harkes, Commit Queue

      Attention is currently required from: Ryan Macnak.

      Patch set 1:Commit-Queue +2

      View Change

        To view, visit change 281460. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: sdk
        Gerrit-Branch: main
        Gerrit-Change-Id: I8e991d361b5defaa52b62a78d515a7639a6dfba0
        Gerrit-Change-Number: 281460
        Gerrit-PatchSet: 1
        Gerrit-Owner: Ryan Macnak <rma...@google.com>
        Gerrit-Reviewer: Daco Harkes <dacoh...@google.com>
        Gerrit-Reviewer: Ryan Macnak <rma...@google.com>
        Gerrit-Attention: Ryan Macnak <rma...@google.com>
        Gerrit-Comment-Date: Tue, 07 Feb 2023 18:36:27 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        Gerrit-MessageType: comment

        Commit Queue (Gerrit)

        unread,
        Feb 7, 2023, 1:45:25 PM2/7/23
        to Ryan Macnak, rev...@dartlang.org, vm-...@dartlang.org, CBuild, Daco Harkes

        Commit Queue submitted this change.

        View Change

        Approvals: Daco Harkes: Looks good to me, approved Ryan Macnak: Commit
        Reland "[build] Make `build_analyze_snapshot` consistent between the host and target toolchains."

        Also create this target for Fuchsia, which like Linux and Android uses ELF.

        Bug: https://github.com/dart-lang/sdk/issues/51242
        Change-Id: I8e991d361b5defaa52b62a78d515a7639a6dfba0
        Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/281460
        Commit-Queue: Ryan Macnak <rma...@google.com>
        Reviewed-by: Daco Harkes <dacoh...@google.com>
        ---
        M runtime/runtime_args.gni
        1 file changed, 19 insertions(+), 3 deletions(-)

        diff --git a/runtime/runtime_args.gni b/runtime/runtime_args.gni
        index 0c4f1ea..ba761a2 100644
        --- a/runtime/runtime_args.gni
        +++ b/runtime/runtime_args.gni
        @@ -89,9 +89,10 @@
        # which is already linked in the VM.
        create_kernel_service_snapshot = dart_target_arch == "x64"

        - # The analyze_snapshot tool is only supported on 64 bit AOT builds running
        - # under linux and android platforms
        + # The analyze_snapshot tool is only supported on 64 bit AOT builds that use
        + # ELF.
        build_analyze_snapshot =
        - (is_linux || is_android) &&
        + (target_os == "linux" || target_os == "android" ||
        + target_os == "fuchsia") &&
        (dart_target_arch == "x64" || dart_target_arch == "arm64")
        }

        To view, visit change 281460. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: sdk
        Gerrit-Branch: main
        Gerrit-Change-Id: I8e991d361b5defaa52b62a78d515a7639a6dfba0
        Gerrit-Change-Number: 281460
        Gerrit-PatchSet: 2
        Gerrit-Owner: Ryan Macnak <rma...@google.com>
        Gerrit-Reviewer: Daco Harkes <dacoh...@google.com>
        Gerrit-Reviewer: Ryan Macnak <rma...@google.com>
        Gerrit-MessageType: merged

        CBuild (Gerrit)

        unread,
        Feb 7, 2023, 2:21:59 PM2/7/23
        to Ryan Macnak, Commit Queue, rev...@dartlang.org, vm-...@dartlang.org, Daco Harkes

        go/dart-cbuild result: SUCCESS

        Details: https://goto.google.com/dart-cbuild/find/e8b6c8a44f8f5e2b7a4f48206e82be438a0720c2

        View Change

          To view, visit change 281460. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: sdk
          Gerrit-Branch: main
          Gerrit-Change-Id: I8e991d361b5defaa52b62a78d515a7639a6dfba0
          Gerrit-Change-Number: 281460
          Gerrit-PatchSet: 2
          Gerrit-Owner: Ryan Macnak <rma...@google.com>
          Gerrit-Reviewer: Daco Harkes <dacoh...@google.com>
          Gerrit-Reviewer: Ryan Macnak <rma...@google.com>
          Gerrit-Comment-Date: Tue, 07 Feb 2023 19:21:55 +0000
          Reply all
          Reply to author
          Forward
          0 new messages