Skip to content

Commit 33095fc

Browse files
committed
fix mman header issues
1 parent 6170804 commit 33095fc

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

extension/data_loader/targets.bzl

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,18 @@ def define_common_targets():
7171
name = "mmap_data_loader",
7272
srcs = [
7373
"mmap_data_loader.cpp"
74-
] + (["mman_windows.cpp"] if host_info().os.is_windows else []),
75-
headers = [
74+
] + select({
75+
"DEFAULT": [],
76+
"ovr_config//os:windows": ["mman_windows.cpp"],
77+
}),
78+
headers = select({
79+
"DEFAULT": [],
80+
"ovr_config//os:windows": ["mman_windows.h"],
81+
}),
82+
exported_headers = [
7683
"mman.h",
77-
] + (["mman_windows.h"] if host_info().os.is_windows else []),
78-
exported_headers = ["mmap_data_loader.h"],
84+
"mmap_data_loader.h"
85+
],
7986
visibility = [
8087
"//executorch/test/...",
8188
"//executorch/extension/pybindings/...",

0 commit comments

Comments
 (0)