Define _SILENCE_CLANG_COROUTINE_MESSAGE for the :windows cc_library.

The experimental/coroutine header is not officially supported by lexan. In the next Windows SDK release, this is signaled by an error during compilation, which is silenced by setting \D_SILENCE_CLANG_COROUTINE_MESSAGE from the command line.

This change sets _SILENCE_CLANG_COROUTINE_MESSAGE in advance of the SDK release. This prevents a break from occurring when the new SDK is released.

BEGIN_PUBLIC
END_PUBLIC

BROKEN: sponge/8b4d6f2f-c407-4860-a0f7-60102a8d003a
WORKING: sponge/fa0111e2-4780-4757-8cf0-da46672648b9
PiperOrigin-RevId: 419499670
This commit is contained in:
hai007
2022-01-03 18:48:03 -08:00
committed by Copybara-Service
parent 9ce7be9812
commit 7cddbe3c09
+1
View File
@@ -111,6 +111,7 @@ cc_library(
],
compatible_with = ["//buildenv/target:non_prod"],
copts = ["-Ithird_party/nearby/cpp/platform/impl/windows/generated"],
defines = ["_SILENCE_CLANG_COROUTINE_MESSAGE"],
visibility = [
"//third_party/nearby/windows:__subpackages__",
],