Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Disable libcxx deprecation warnings for FML's use of UTF-16 string converters #34551

Merged
merged 1 commit into from
Jul 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion fml/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,18 @@ source_set("string_conversion") {
"string_conversion.h",
]

# Current versions of libcxx have deprecated some of the UTF-16 string
# conversion APIs.
defines = [ "_LIBCPP_DISABLE_DEPRECATION_WARNINGS" ]

if (is_win) {
sources += [
"platform/win/wstring_conversion.cc",
"platform/win/wstring_conversion.h",
]

# TODO(cbracken): https://github.com/flutter/flutter/issues/50053
defines = [ "_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING" ]
defines += [ "_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING" ]
}

deps = [ ":build_config" ]
Expand Down