executorch icon indicating copy to clipboard operation
executorch copied to clipboard

Support build on native Windows

Open python3kgae opened this issue 1 year ago • 0 comments

🚀 The feature, motivation and pitch

Currently, executorch supports Windows via WSL. It would be beneficial to enable native Windows builds as well, as this would assist users who do not have WSL installed.

Alternatives

Executorch already supports Windows via WSL.

Additional context

No response

RFC (Optional)

The plan is to create a PowerShell version of install_requirements.sh.

Here is a list of things that need to be updated for building on native Windows:

  • [ ] Get the Windows version of buck2 for Windows build in build/resolve_buck.py.
  • [ ] Check the path based on the build configuration for Windows in setup.py. For example, third-party/flatbuffers/flatc should be third-party/flatbuffers/Debug/flatc.exe for Debug builds.
  • [ ] Avoid generating 'def flat.exe()' which is illegal python in build/pip_data_bin_init.py.in.
  • [ ] Add the Windows version of kernel_link_options in build/Utils.cmake.
  • [ ] Add links of pthreadpool and cpuinfo for custom_ops_aot_lib in extension/llm/custom_ops/CMakeLists.txt.
  • [ ] Define ssize_t for Windows in runtime/core/portable_type/tensor_impl.h and runtime/core/exec_aten/util/tensor_util.h.
  • [ ] #4659

python3kgae avatar Aug 11 '24 12:08 python3kgae