From: Yedidya Feldblum Date: Tue, 31 Oct 2017 05:00:25 +0000 (-0700) Subject: Remove dep on Format.h from GenerateFingerprintTables.cpp X-Git-Tag: v2017.11.06.00~29 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=598926c4529b459ce535657ec76ac792f4ec010e;p=folly.git 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 --- diff --git a/folly/build/GenerateFingerprintTables.cpp b/folly/build/GenerateFingerprintTables.cpp index 0085ac8d..adf4c5da 100644 --- a/folly/build/GenerateFingerprintTables.cpp +++ b/folly/build/GenerateFingerprintTables.cpp @@ -25,7 +25,6 @@ #include -#include #include #include @@ -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);