Skip to content

Commit

Permalink
Fix up build/test issues when building on or off of mac (flutter#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield committed Apr 27, 2022
1 parent 01e81ef commit 2b48a80
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions impeller/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ config("impeller_public_config") {
}

if (is_win) {
defines += [ "_USE_MATH_DEFINES" ]
defines += [
"_USE_MATH_DEFINES",
# TODO(dnfield): https://github.com/flutter/flutter/issues/50053
"_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING",
]
}
}

Expand Down Expand Up @@ -50,7 +54,6 @@ executable("impeller_unittests") {
"base:base_unittests",
"blobcat:blobcat_unittests",
"compiler:compiler_unittests",
"fixtures",
"geometry:geometry_unittests",

# FML depends on the Dart VM for tracing and getting the current
Expand All @@ -63,6 +66,7 @@ executable("impeller_unittests") {
"aiks:aiks_unittests",
"display_list:display_list_unittests",
"entity:entity_unittests",
"fixtures",
"image:image_unittests",
"playground",
"renderer:renderer_unittests",
Expand Down
2 changes: 1 addition & 1 deletion impeller/compiler/utilities.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

#include "impeller/compiler/utilities.h"

#include <cctype>
#include <filesystem>
#include <sstream>
#include <string>

namespace impeller {
namespace compiler {
Expand Down
2 changes: 1 addition & 1 deletion impeller/display_list/display_list_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ TEST_P(DisplayListTest, StrokedPathsDrawCorrectly) {
ASSERT_TRUE(OpenPlaygroundHere(builder.Build()));
}

TEST_F(DisplayListTest, CanDrawWithMaskBlur) {
TEST_P(DisplayListTest, CanDrawWithMaskBlur) {
auto texture = CreateTextureForFixture("embarcadero.jpg");
flutter::DisplayListBuilder builder;

Expand Down
2 changes: 1 addition & 1 deletion impeller/playground/playground.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ std::string PlaygroundBackendToString(PlaygroundBackend backend) {
Playground::Playground()
: impl_(PlaygroundImpl::Create(GetParam())),
renderer_(impl_->CreateContext()),
is_valid_(Playground::is_enabled() && renderer_.IsValid()) {}
is_valid_(renderer_.IsValid()) {}

Playground::~Playground() = default;

Expand Down

0 comments on commit 2b48a80

Please sign in to comment.