Commit 4534b679 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Let Init work without gflags support

Summary: [Folly] Let `Init` work without `gflags` support.

Reviewed By: simpkins

Differential Revision: D20150102

fbshipit-source-id: ceaae7ec3373f46457ba0d2a524b1223dec9961c
parent 455116f7
......@@ -50,7 +50,11 @@ void init(int* argc, char*** argv, bool removeFlags) {
// things now" phase.
folly::SingletonVault::singleton()->registrationComplete();
#if !FOLLY_HAVE_LIBGFLAGS
(void)removeFlags;
#else
gflags::ParseCommandLineFlags(argc, argv, removeFlags);
#endif
folly::initLoggingOrDie(FLAGS_logging);
auto programName = argc && argv && *argc > 0 ? (*argv)[0] : "unknown";
......
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