Cleanup propagation of codecvt warning suppression in FML. (flutter/engine#52966)

Previously, because the suppression was local, every user of the the header had to manually add the flag. Now the flag will be propagated to the targets automatically. This linked issue still needs to be fixed but the fix can now be more isolated.
This commit is contained in:
Chinmay Garde
2024-05-23 14:03:52 -07:00
committed by GitHub
parent 69cfdf325c
commit 6b36f0f40b
2 changed files with 8 additions and 10 deletions

View File

@@ -289,6 +289,13 @@ source_set("command_line") {
]
}
config("string_conversion_config") {
if (is_win) {
# TODO(50053): Replace codecvt usage.
defines = [ "_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING" ]
}
}
source_set("string_conversion") {
sources = [
"string_conversion.cc",
@@ -304,14 +311,12 @@ source_set("string_conversion") {
"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" ]
}
deps = [ ":build_config" ]
public_configs = [
":string_conversion_config",
"//flutter:config",
"//flutter/common:flutter_config",
]

View File

@@ -30,13 +30,6 @@ config("impeller_public_config") {
defines += [ "IMPELLER_ENABLE_VULKAN=1" ]
}
if (is_win) {
defines += [
# TODO(dnfield): https://github.com/flutter/flutter/issues/50053
"_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING",
]
}
if (impeller_enable_3d) {
defines += [ "IMPELLER_ENABLE_3D" ]
}