Skip to content

Commit 6357580

Browse files
authored
Write modulemap manually while building Apple frameworks (#11069)
1 parent f6ba65b commit 6357580

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

extension/apple/ExecuTorch/Exported/module.modulemap

Lines changed: 0 additions & 5 deletions
This file was deleted.

scripts/build_apple_frameworks.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,12 @@ sed -i '' '1i\
240240
cp -r $HEADERS_PATH/executorch/runtime/core/portable_type/c10/c10 "$HEADERS_PATH/"
241241

242242
cp "$SOURCE_ROOT_DIR/extension/apple/ExecuTorch/Exported/"*.h "$HEADERS_PATH/executorch"
243-
cp "$SOURCE_ROOT_DIR/extension/apple/ExecuTorch/Exported/"*.modulemap "$HEADERS_PATH"
243+
cat > "$HEADERS_PATH/module.modulemap" << 'EOF'
244+
module ExecuTorch {
245+
umbrella header "ExecuTorch/ExecuTorch.h"
246+
export *
247+
}
248+
EOF
244249

245250
echo "Creating frameworks"
246251

0 commit comments

Comments
 (0)