Skip to content

Commit a571e16

Browse files
fix lint warning
1 parent c5e68a2 commit a571e16

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

extension/data_loader/file_data_loader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
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>

runtime/platform/compiler.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@
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
/**

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)