Files
sdk/runtime/platform
Tess Strickland 83e9bd72ea [vm] Additional Mach-O related command line options for gen_snapshot.
Adds the following command line options to gen_snapshot:

* --macho-install-name: The name to use as the install name for the
  dynamic library (used in the LC_ID_DYLIB and LC_CODE_SIGNATURE
  load commands). If not provided, the output filename is used.

* --[no-]macho-linker-signature: Whether or not gen_snapshot should
  generate an ad-hoc linker-signed signature. Defaults to true.

The following command line option is macOS/iOS-specific:

* --macho-rpath: Comma-delimited run paths that should be added at
  runtime to the current run path used for finding @rpath-prefixed
  dynamic libraries.

Adds support to parsing rpath and dylib load commands to
pkg/native_stack_traces's Mach-O parser in order to test the
command line options appropriately.

TEST=vm/dart/use_macho_options

Issue: https://github.com/dart-lang/sdk/issues/60307
Change-Id: I17618578a7bff7851a88cdaf27f299f058f98dd3
Cq-Include-Trybots: luci.dart.try:vm-aot-mac-debug-x64-try,vm-aot-mac-debug-arm64-try,vm-aot-linux-debug-arm64-try,vm-aot-linux-debug-x64-try,pkg-mac-release-try,pkg-mac-release-arm64-try,pkg-linux-release-arm64-try,vm-aot-win-release-arm64-try,vm-aot-win-debug-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/441920
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2025-07-29 06:01:14 -07:00
..
2024-11-13 00:57:46 +00:00
2025-04-15 09:07:59 -07:00
2025-06-04 15:14:15 -07:00