Skip to content

Commit

Permalink
Remove dependency on Dart, add crash handler to impellerc (flutter#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield committed Apr 27, 2022
1 parent 69b676c commit 8679fe7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
4 changes: 0 additions & 4 deletions impeller/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 0 additions & 4 deletions impeller/blobcat/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
}

Expand Down
4 changes: 0 additions & 4 deletions impeller/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
}

Expand Down
2 changes: 2 additions & 0 deletions impeller/compiler/impellerc_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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;
Expand Down

0 comments on commit 8679fe7

Please sign in to comment.