Files
sdk/pkg/dartdev/test
Tess Strickland a4cb6abdb4 [pkg/dartdev] Autodetect target OS when compiling to an executable.
Report an error if compiling to an executable and the user attempts
a cross-OS compilation, that is, the user provides a '--target-os'
argument that does not match the host OS.

For AOT snapshots, no target OS is autodetected, so the default
output is OS agnostic, and cross-OS compilation is allowed.

Add '--target-os' as a command line option to 'dart build', with
the same restrictions as 'dart compile'.

Also removes test restrictions that were added for
https://github.com/dart-lang/sdk/issues/51707, which has since
been closed.

TEST=pkg/dartdev/test/commands/compile_test
     pkg/dartdev/test/native_assets/build_test

Fixes https://github.com/dart-lang/sdk/issues/53247

Change-Id: Ieb82d0d25736b0036c5579d25ca29c8834b789b7
Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-linux-release-try,pkg-mac-release-arm64-try,pkg-mac-release-try,pkg-win-release-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322341
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2023-08-25 10:40:52 +00:00
..
2023-03-27 14:52:23 +00:00
2023-03-27 14:52:23 +00:00
2023-03-27 14:52:23 +00:00
2023-03-27 14:52:23 +00:00
2023-05-30 09:10:28 +00:00