Commit 598926c4 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Remove dep on Format.h from GenerateFingerprintTables.cpp

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
parent b22935cd
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Format.h>
#include <folly/portability/GFlags.h> #include <folly/portability/GFlags.h>
#include <folly/detail/FingerprintPolynomial.h> #include <folly/detail/FingerprintPolynomial.h>
...@@ -122,8 +121,7 @@ int main(int argc, char *argv[]) { ...@@ -122,8 +121,7 @@ int main(int argc, char *argv[]) {
gflags::ParseCommandLineFlags(&argc, &argv, true); gflags::ParseCommandLineFlags(&argc, &argv, true);
google::InitGoogleLogging(argv[0]); google::InitGoogleLogging(argv[0]);
std::string name = folly::format("{}/{}", FLAGS_install_dir, std::string name = FLAGS_install_dir + "/" + "FingerprintTables.cpp";
"FingerprintTables.cpp").str();
FILE* file = fopen(name.c_str(), "w"); FILE* file = fopen(name.c_str(), "w");
PCHECK(file); PCHECK(file);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment