1. 23 1月, 2019 1 次提交
  2. 17 12月, 2018 1 次提交
    • C
      Compile embedder unit test Dart to kernel (#7231) · 67cd7d4d
      Chris Bracken 提交于
      As of the migration to Dart 2, it has been necessary to compile Dart to
      kernel prior to execution. The embedder currently requires that the
      resulting kernel file be named `kernel_blob.bin` and be located at the
      root of the assets directory passed to the embedder API.
      
      This patch updates the test_fixtures build rule to perform a kernel
      compile using frontend_server, outputting `kernel_blob.bin` to
      `fixtures/test_target_name` directory, and updates the embedder
      unittests to specify the kernel file rather than the Dart source file.
      
      Since the kernel compiler requires a `main()` function to be defined, it
      also updates `simple_main.dart` from runtime_unittests to define
      `main()` rather than `simple_main()`.
      
      This also updates all existing sub-targets to be testonly.
      
      This relands commit ac9e521a, which was
      reverted in commit 49411258. Rather than
      running as prebuilt_dart_action, we use dart_action to ensure the
      frontend snapshot it compatible with the VM on which it's executed.
      67cd7d4d
  3. 16 12月, 2018 2 次提交
    • C
      Revert "Compile embedder unit test Dart to kernel (#7227)" (#7230) · 49411258
      Chris Bracken 提交于
      This reverts commit ac9e521a.
      
      This broke dynamic release mode builds of
      //flutter/runtime:runtime_fixtures_kernel (likely all product-mode
      builds).
      49411258
    • C
      Compile embedder unit test Dart to kernel (#7227) · ac9e521a
      Chris Bracken 提交于
      Compile embedder unit test Dart to kernel
      
      As of the migration to Dart 2, it has been necessary to compile Dart to
      kernel prior to execution. The embedder currently requires that the
      resulting kernel file be named `kernel_blob.bin` and be located at the
      root of the assets directory passed to the embedder API.
      
      This patch updates the test_fixtures build rule to perform a kernel
      compile using frontend_server, outputting `kernel_blob.bin` to
      `fixtures/test_target_name` directory, and updates the embedder
      unittests to specify the kernel file rather than the Dart source file.
      
      Since the kernel compiler requires a `main()` function to be defined, it
      also updates `simple_main.dart` from runtime_unittests to define
      `main()` rather than `simple_main()`.
      
      This also updates all existing sub-targets to be testonly.
      ac9e521a
  4. 08 11月, 2018 1 次提交
  5. 26 10月, 2017 1 次提交