aboutsummaryrefslogtreecommitdiff
path: root/pw_log_rpc/BUILD.gn
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-03-12 23:07:32 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-03-12 23:07:32 +0000
commit47562fa92998f8f4289ae9a8048349067754d52e (patch)
treec1643be8ab17fc607cea748a8bb1d621a5964873 /pw_log_rpc/BUILD.gn
parenteeec55b65fe2c3c7647bb70ea44b3c839eb1267c (diff)
parent646563934a3e2ee26f50171f94d95173a1662e2c (diff)
downloadpigweed-47562fa92998f8f4289ae9a8048349067754d52e.tar.gz
Snap for 11566117 from 646563934a3e2ee26f50171f94d95173a1662e2c to sdk-releaseplatform-tools-35.0.1
Change-Id: Iec629b181a2c6905754a4c340e334884e13fd3b4
Diffstat (limited to 'pw_log_rpc/BUILD.gn')
-rw-r--r--pw_log_rpc/BUILD.gn12
1 files changed, 12 insertions, 0 deletions
diff --git a/pw_log_rpc/BUILD.gn b/pw_log_rpc/BUILD.gn
index 5b62508b3..e23e0f101 100644
--- a/pw_log_rpc/BUILD.gn
+++ b/pw_log_rpc/BUILD.gn
@@ -32,6 +32,12 @@ config("public_include_path") {
visibility = [ ":*" ]
}
+# TODO: b/297280281 - Windows+gcc+mingw-w64 thinks that some variables are not
+# always initialized. This is a toolchain bug, not a real issue.
+config("disable_warning") {
+ cflags = [ "-Wno-maybe-uninitialized" ]
+}
+
pw_source_set("config") {
sources = [ "public/pw_log_rpc/internal/config.h" ]
public_configs = [ ":public_include_path" ]
@@ -139,9 +145,15 @@ pw_source_set("rpc_log_drain_thread") {
"$dir_pw_sync:timed_thread_notification",
"$dir_pw_thread:thread",
]
+ if (current_os == "win") {
+ public_configs += [ ":disable_warning" ]
+ }
}
pw_source_set("test_utils") {
+ # TODO: b/303282642 - Remove this testonly
+ testonly = pw_unit_test_TESTONLY
+
public_deps = [
"$dir_pw_bytes",
"$dir_pw_containers:vector",