dart-sdk/utils
Martin Kustermann 153b668c8b [stable] [dart2wasm] Make dart compile wasm compiled apps disable dart.library.ffi
This is a follow-up to [0]. That CL changed dart2wasm's modular
transformer to issue an error if `dart:ffi` is imported.

Users of packages that have specialized code for the VM (which supports
FFI) use conditional imports based on `dart.library.ffi`. We don't want
the VM-specific code to be used for web in dart2wasm (as dart2wasm
doesn't support the entirety of `dart:ffi`).

As a result we're going to make `dart.library.ffi` be false in
coditional imports (as well as in
`const bool.fromEnvironment('dart.library.ffi')`).

[0] https://dart-review.googlesource.com/c/sdk/+/368568

Bug: https://github.com/dart-lang/sdk/issues/55948
Bug: https://github.com/flutter/flutter/issues/149984

Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/370580
Cherry-pick-request: https://github.com/dart-lang/sdk/issues/55979
Change-Id: Ia968bacf92566d421606fc026c7f016fe5abff01
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/370880
Reviewed-by: Slava Egorov <vegorov@google.com>
2024-06-11 12:21:11 +00:00
..
analysis_server [analyzer] Train snapshot more than --help 2022-11-15 10:49:51 +00:00
bazel Reland "[ddc] Fix running d8 with test.py" 2024-02-13 20:09:58 +00:00
compiler [build] Omit SDK and Git hashes on RBE. 2023-12-20 12:23:56 +00:00
dart2native [BUILD] - Format gn files, this is being done to ensure the unfork CL 2020-03-10 21:56:11 +00:00
dart2wasm [stable] [dart2wasm] Make dart compile wasm compiled apps disable dart.library.ffi 2024-06-11 12:21:11 +00:00
dartanalyzer [sdk] no longer generate <sdk>/lib/_internal/strong.sum 2023-03-20 17:25:43 +00:00
dartdev [ VM / DDS ] Add --print-dtd-uri flag and launch DTD from the correct snapshot for AOT 2024-03-21 19:50:46 +00:00
ddc Reland "[ddc] Fix running d8 with test.py" 2024-02-13 20:09:58 +00:00
dds [ VM / DDS ] Add --print-dtd-uri flag and launch DTD from the correct snapshot for AOT 2024-03-21 19:50:46 +00:00
dtd [ VM / DDS ] Add --print-dtd-uri flag and launch DTD from the correct snapshot for AOT 2024-03-21 19:50:46 +00:00
gen_kernel [Reland] [dartdev] Convert gen_kernel.dart.snapshot into an AOT snapshot 2023-09-26 21:46:58 +00:00
kernel-service [SDK] Ensure compatibility between frontend_server AOT snapshot and dartaotruntime in release builds 2023-08-29 19:44:29 +00:00
aot_snapshot.gni Revert "[dartdev] Convert gen_kernel.dart.snapshot into an AOT snapshot" 2023-09-25 10:17:52 +00:00
application_snapshot.gni [build] Collapse now-identical application_snapshot and kernel_application_snapshot. 2023-06-23 21:58:30 +00:00
compile_platform.gni Replace a bunch of references to .packages 2021-10-12 20:16:15 +00:00
create_timestamp.gni Reapply "[build] Track glob dependencies via depfiles, instead of always re-executing scripts at GN time." 2021-05-12 00:27:28 +00:00
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00