Remove dep on Format.h from GenerateFingerprintTables.cpp
authorYedidya Feldblum <yfeldblum@fb.com>
Tue, 31 Oct 2017 05:00:25 +0000 (22:00 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 31 Oct 2017 05:10:29 +0000 (22:10 -0700)
Summary:
[Folly] Remove dep on `Format.h` from `GenerateFingerprintTables.cpp`.

`GenerateFingerprintTables.cpp` is a tool used to generate other sources which get built as part of the main library when using the autotools build, so it must be as free of other Folly dependencies as possible.

Reviewed By: ot, Orvid

Differential Revision: D6183725

fbshipit-source-id: f12b18553c78e085599a5505ae57f12bc0cd44b0

folly/build/GenerateFingerprintTables.cpp

index 0085ac8d41d2d25f57b933366e8d5a5a8fbcd18f..adf4c5dabe55d675882c738a2b8523572274a641 100644 (file)
@@ -25,7 +25,6 @@
 
 #include <glog/logging.h>
 
-#include <folly/Format.h>
 #include <folly/portability/GFlags.h>
 
 #include <folly/detail/FingerprintPolynomial.h>
@@ -122,8 +121,7 @@ int main(int argc, char *argv[]) {
   gflags::ParseCommandLineFlags(&argc, &argv, true);
   google::InitGoogleLogging(argv[0]);
 
-  std::string name = folly::format("{}/{}", FLAGS_install_dir,
-                                   "FingerprintTables.cpp").str();
+  std::string name = FLAGS_install_dir + "/" + "FingerprintTables.cpp";
   FILE* file = fopen(name.c_str(), "w");
   PCHECK(file);