We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6170804 commit 33095fcCopy full SHA for 33095fc
extension/data_loader/targets.bzl
@@ -71,11 +71,18 @@ def define_common_targets():
71
name = "mmap_data_loader",
72
srcs = [
73
"mmap_data_loader.cpp"
74
- ] + (["mman_windows.cpp"] if host_info().os.is_windows else []),
75
- headers = [
+ ] + select({
+ "DEFAULT": [],
76
+ "ovr_config//os:windows": ["mman_windows.cpp"],
77
+ }),
78
+ headers = select({
79
80
+ "ovr_config//os:windows": ["mman_windows.h"],
81
82
+ exported_headers = [
83
"mman.h",
- ] + (["mman_windows.h"] if host_info().os.is_windows else []),
- exported_headers = ["mmap_data_loader.h"],
84
+ "mmap_data_loader.h"
85
+ ],
86
visibility = [
87
"//executorch/test/...",
88
"//executorch/extension/pybindings/...",
0 commit comments