File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414#include < cstring>
1515#include < limits>
1616
17+ #include < executorch/runtime/platform/compat_unistd.h>
1718#include < fcntl.h>
1819#include < sys/stat.h>
1920#include < sys/types.h>
20- # include < executorch/runtime/platform/compat_unistd.h >
21+
2122
2223#include < executorch/runtime/core/error.h>
2324#include < executorch/runtime/core/result.h>
Original file line number Diff line number Diff line change 100100#endif // (__cplusplus) >= 202002L
101101
102102/// Define a C symbol with weak linkage.
103- // Building on Windows also need this. Windows build uses clang-cl compiler, which supports __attribute__((weak)).
103+ // Building on Windows also need this. Windows build uses clang-cl compiler,
104+ // which supports __attribute__((weak)).
104105#define ET_WEAK __attribute__((weak))
105106
106107/**
Original file line number Diff line number Diff line change @@ -663,8 +663,8 @@ def get_ext_modules() -> List[Extension]:
663663 # portable kernels, and a selection of backends. This lets users
664664 # load and execute .pte files from python.
665665 BuiltExtension (
666- src_dir = "%BUILD_TYPE%/" , # Set the src directory based on build configuration for windows.
667- src_name = "_portable_lib.cp*" , # Rename _portable_lib.* to _portable_lib.cp* to avoid _portable_lib.lib is selected on windows.
666+ src_dir = "%BUILD_TYPE%/" ,# Set the src directory based on build configuration for windows.
667+ src_name = "_portable_lib.cp*" ,# Rename _portable_lib.* to _portable_lib.cp* to avoid _portable_lib.lib is selected on windows.
668668 modpath = "executorch.extension.pybindings._portable_lib" ,
669669 )
670670 )
You can’t perform that action at this time.
0 commit comments