Move over to ABSL logging and flags.

Removes gperftools too since that wants gflags.

Here come the fireworks.

Change-Id: I79cb7bcf60f1047fbfa28bfffc21a0fd692e4b1c
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/build_tests/BUILD b/build_tests/BUILD
index 1eaf737..7a36208 100644
--- a/build_tests/BUILD
+++ b/build_tests/BUILD
@@ -15,7 +15,7 @@
     ],
     target_compatible_with = ["@platforms//os:linux"],
     deps = [
-        "@com_github_gflags_gflags//:gflags",
+        "@com_google_absl//absl/flags:flag",
     ],
 )
 
@@ -36,6 +36,8 @@
     data = [
         ":tcmalloc_build_test_binary",
     ],
+    # TODO(austin): Turn this back on when we get memory instrumentation figured out for tcmalloc for --die_on_malloc
+    tags = ["manual"],
     target_compatible_with = ["@platforms//os:linux"],
 )
 
diff --git a/build_tests/gflags.cc b/build_tests/gflags.cc
index b2f0d08..b5bcb57 100644
--- a/build_tests/gflags.cc
+++ b/build_tests/gflags.cc
@@ -1,5 +1,5 @@
-#include "gflags/gflags.h"
+#include "absl/flags/flag.h"
 
-DEFINE_int32(test_flag, 0, "Test command-line flag");
+ABSL_FLAG(int32_t, test_flag, 0, "Test command-line flag");
 
-int main() { return FLAGS_test_flag; }
+int main() { return absl::GetFlag(FLAGS_test_flag); }