Skip to content

Commit 917bc45

Browse files
ahornbyfacebook-github-bot
authored andcommitted
fix edencommon build on github (#23)
Summary: Pull Request resolved: #23 fix edencommon build on github, noticed D70652111 was breaking watchman on edencommon Reviewed By: MichaelCuevas Differential Revision: D70977759 fbshipit-source-id: be5a54c58916a9ae9c52827a24aa923dacac816d
1 parent 23c7d45 commit 917bc45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

eden/common/telemetry/SessionInfo.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424

2525
#include <cstdlib>
2626

27+
#ifdef EDEN_COMMON_HAVE_DEVSERVER_FINGERPRINT
2728
#include "common/rust/devserver_fingerprint/ffi/src/lib.rs.h" // @manual
29+
#endif
2830
#include "eden/common/utils/SysctlUtil.h"
2931

3032
namespace {
@@ -144,7 +146,11 @@ std::string getCrossEnvSessionId() {
144146
}
145147

146148
std::string getSystemFingerprint() {
149+
#ifdef EDEN_COMMON_HAVE_DEVSERVER_FINGERPRINT
147150
return std::string(devserver_fingerprint::fingerprint());
151+
#else
152+
return std::string();
153+
#endif
148154
}
149155

150156
} // namespace facebook::eden

0 commit comments

Comments
 (0)