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/frc971/orin/cuda.cc b/frc971/orin/cuda.cc
index 6bcc79c..cd68a6c 100644
--- a/frc971/orin/cuda.cc
+++ b/frc971/orin/cuda.cc
@@ -1,10 +1,10 @@
#include "frc971/orin/cuda.h"
-#include "gflags/gflags.h"
-#include "glog/logging.h"
+#include "absl/flags/flag.h"
+#include "absl/log/check.h"
-DEFINE_bool(
- sync, false,
+ABSL_FLAG(
+ bool, sync, false,
"If true, force synchronization after each step to isolate errors better.");
namespace frc971::apriltag {
@@ -17,11 +17,11 @@
}
void MaybeCheckAndSynchronize() {
- if (FLAGS_sync) CheckAndSynchronize();
+ if (absl::GetFlag(FLAGS_sync)) CheckAndSynchronize();
}
void MaybeCheckAndSynchronize(std::string_view message) {
- if (FLAGS_sync) CheckAndSynchronize(message);
+ if (absl::GetFlag(FLAGS_sync)) CheckAndSynchronize(message);
}
} // namespace frc971::apriltag