Skip to content

Commit

Permalink
Fix Windows builds due to missing helper func (#1039)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #1039

Fixes an issue causing windows builds to fail
#1035

Reviewed By: xunnanxu

Differential Revision: D69608709

fbshipit-source-id: 0e40c02929ae58556c7dc9eb2feb9de66cc13964
  • Loading branch information
briancoutinho authored and facebook-github-bot committed Feb 14, 2025
1 parent 597427a commit a054a4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libkineto/include/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,6 @@ class Config : public AbstractConfig {

constexpr char kUseDaemonEnvVar[] = "KINETO_USE_DAEMON";

#if __linux__
bool isDaemonEnvVarSet();
#endif

} // namespace libkineto
4 changes: 4 additions & 0 deletions libkineto/src/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ bool isDaemonEnvVarSet() {
}();
return rc;
}
#else
bool isDaemonEnvVarSet() {
return false;
}
#endif

std::shared_ptr<void> Config::getStaticObjectsLifetimeHandle() {
Expand Down

0 comments on commit a054a4b

Please sign in to comment.