mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
0cb5ceedfe
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
20 lines
483 B
C++
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;
|
|
}
|
|
}
|