flutter/packages/flutter_tools/test/general.shard/build_system/targets
Tess Strickland 840d7dd68a
Use --target-os for appropriate precompiled targets. (#127567)
This PR adds uses of the `--target-os` command line argument when
building kernel sources for precompiled applications for supported
target operating systems. The Dart CFE then:

* treats `Platform.operatingSystem` as if it were defined as the
constant string provided as an argument to the flag,
* treats `Platform.pathSeparator` as the appropriate separator for that
operating system,
* attempts to constant evaluate the initializer for any field annotated
with the `vm:platform-const` pragma, and
* attempts to constant evaluate all calls to a method annotated with the
`vm:platform-const` pragma.

The `vm:platform-const` pragma can appear in either library or user
code. If the attempt to constant evaluate the field initializer or
method call fails, then an error is thrown at kernel compilation time.

Addresses #14233.

The tests in
`packages/flutter_tools/test/general.shard/build_system/targets/common_test.dart`
have been adjusted properly to account for the new passed command line
arguments.
2023-06-08 13:17:18 +02:00
..
android_test.dart Use the impellerc GLES output flag when compiling shaders for Android (#120647) 2023-02-15 19:01:00 +00:00
assets_test.dart tool: DRY up DepfileService (#125922) 2023-05-03 20:54:51 +00:00
common_test.dart Use --target-os for appropriate precompiled targets. (#127567) 2023-06-08 13:17:18 +02:00
dart_plugin_registrant_test.dart Don't rethrow Dart plugin registration exceptions (#122111) 2023-03-28 15:08:57 +00:00
deferred_components_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00
desktop_test.dart Migrate some test files to null safety (#104469) 2022-05-24 16:53:08 -07:00
icon_tree_shaker_test.dart [flutter_tools] never tree shake 0x20 (space) font codepoints on web (#128302) 2023-06-06 21:06:15 +00:00
ios_test.dart Remove Finder extended attributes in build target before code signing iOS frameworks (#123896) 2023-04-14 02:26:15 +00:00
linux_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00
localizations_test.dart Refactor "gen-l10n" command to use same code path when "l10n.yaml" is present or not present (#125429) 2023-04-26 11:49:25 -07:00
macos_test.dart [flutter_tools] delete entitlements files after copying to macos build dir (#127417) 2023-05-23 19:12:11 +00:00
shader_compiler_test.dart [flutter_tool] Adds a flag to disable Impeller (#122960) 2023-03-20 22:23:23 -07:00
web_test.dart tool-web-wasm: make wasm-opt an "option" instead of a "flag" (#126035) 2023-05-04 22:07:12 +00:00
windows_test.dart tool: DRY up DepfileService (#125922) 2023-05-03 20:54:51 +00:00