sapling/eden/fs/win/service/main.cpp
Xavier Deguillard 0cb5ceedfe unify the EdenMain code on Windows
Summary:
Update EdenFS on Windows to use EdenMain.cpp, the same as on POSIX.

This reduces the amount of code divergence, and also brings several
improvements to Windows: exposing version information over fb303, support for
dynamically changing logging configuration over fb303, etc.

Reviewed By: simpkins

Differential Revision: D21332569

fbshipit-source-id: dd2da7c385e96f65fc3927511c9f84b96bec9e2b
2020-05-28 09:01:03 -07:00

20 lines
483 B
C++

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
#include "eden/fs/service/EdenMain.h"
using namespace facebook::eden;
int __cdecl main(int argc, char** argv) {
try {
return runEdenMain(DefaultEdenMain{}, argc, argv);
} catch (const std::exception& ex) {
fprintf(stderr, "Error while running EdenFS: %s\n", ex.what());
return 1;
}
}