Remove dependency on Dart, add crash handler to impellerc (flutter/engine#150)

This commit is contained in:
Dan Field
2022-04-21 19:23:28 -07:00
committed by Dan Field
parent 9c186ec1db
commit 82be149044
4 changed files with 2 additions and 12 deletions

View File

@@ -55,10 +55,6 @@ executable("impeller_unittests") {
"blobcat:blobcat_unittests",
"compiler:compiler_unittests",
"geometry:geometry_unittests",
# FML depends on the Dart VM for tracing and getting the current
# timepoint.
"//flutter/runtime:libdart",
]
if (impeller_supports_rendering) {

View File

@@ -29,10 +29,6 @@ impeller_component("blobcat") {
":blobcat_lib",
"../base",
"//flutter/fml",
# FML depends on the Dart VM for tracing and getting the current
# timepoint.
"//flutter/runtime:libdart",
]
}

View File

@@ -44,10 +44,6 @@ impeller_component("impellerc") {
deps = [
":compiler_lib",
# FML depends on the Dart VM for tracing and getting the current
# timepoint.
"//flutter/runtime:libdart",
]
}

View File

@@ -4,6 +4,7 @@
#include <filesystem>
#include "flutter/fml/backtrace.h"
#include "flutter/fml/command_line.h"
#include "flutter/fml/file.h"
#include "flutter/fml/macros.h"
@@ -18,6 +19,7 @@ namespace impeller {
namespace compiler {
bool Main(const fml::CommandLine& command_line) {
fml::InstallCrashHandler();
if (command_line.HasOption("help")) {
Switches::PrintHelp(std::cout);
return true;