Skip to content

Commit 2c392dc

Browse files
authored
Write modulemap manually while building Apple frameworks
1 parent c256723 commit 2c392dc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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)