Skip to content

Commit 4230c54

Browse files
committed
fix mman header issues
1 parent 6170804 commit 4230c54

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

examples/arm/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ for i in "${!test_model[@]}"; do
200200

201201
# Remove old pte files
202202
rm -f "${output_folder}/${model_filename}"
203-
203+
204204
ARM_AOT_CMD="python3 -m examples.arm.aot_arm_compiler --model_name=${model} --target=${target} ${model_compiler_flags} --intermediate=${output_folder} --output=${pte_file} --so_library=$SO_LIB --system_config=${system_config} --memory_mode=${memory_mode} $bundleio_flag"
205205
echo "CALL ${ARM_AOT_CMD}" >&2
206206
${ARM_AOT_CMD} 1>&2

extension/data_loader/targets.bzl

+11-4
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)