Add code to xz-compress log files

Change-Id: I2e00c8aa316f5907f7f9bc1a4653b1f7c793a876
diff --git a/third_party/BUILD b/third_party/BUILD
index bcba978..2f22b0e 100644
--- a/third_party/BUILD
+++ b/third_party/BUILD
@@ -113,3 +113,15 @@
         "roborio": ["@webrtc_rio//:webrtc"],
     }),
 )
+
+# TODO(Brian): Properly restrict this to specific platforms and remove the
+# default deps once we have support for that which interacts with select properly.
+cc_library(
+    name = "lzma",
+    visibility = ["//visibility:public"],
+    deps = select({
+        "//tools:cpu_k8": ["@lzma_amd64//:lib"],
+        "//tools:cpu_arm64": ["@lzma_arm64//:lib"],
+        "//conditions:default": [],
+    }),
+)