Skip to content

Commit

Permalink
Fix Windows builds due to missing helper func
Browse files Browse the repository at this point in the history
Summary:
Fixes an issue causing windows builds to fail 
pytorch#1035

Reviewed By: xunnanxu

Differential Revision: D69608709
  • Loading branch information
briancoutinho authored and facebook-github-bot committed Feb 13, 2025
1 parent 597427a commit e3e886c
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 e3e886c

Please sign in to comment.