#include <glog/logging.h>
#include <folly/Singleton.h>
+#include <folly/portability/Config.h>
#ifdef FOLLY_USE_SYMBOLIZER
-#include <folly/experimental/symbolizer/SignalHandler.h>
+#include <folly/experimental/symbolizer/SignalHandler.h> // @manual
#endif
#include <folly/portability/GFlags.h>
google::InstallFailureSignalHandler();
#endif
+ // Move from the registration phase to the "you can actually instantiate
+ // things now" phase.
+ folly::SingletonVault::singleton()->registrationComplete();
+
gflags::ParseCommandLineFlags(argc, argv, removeFlags);
auto programName = argc && argv && *argc > 0 ? (*argv)[0] : "unknown";
#ifdef FOLLY_USE_SYMBOLIZER
// Don't use glog's DumpStackTraceAndExit; rely on our signal handler.
google::InstallFailureFunction(abort);
-#endif
- // Move from the registration phase to the "you can actually instantiate
- // things now" phase.
- folly::SingletonVault::singleton()->registrationComplete();
-
-#ifdef FOLLY_USE_SYMBOLIZER
// Actually install the callbacks into the handler.
folly::symbolizer::installFatalSignalCallbacks();
#endif