Skip to content

Commit 760be75

Browse files
committed
squash! llama : add xcframework build script
Remove the unnecessary whitespace in the build-xcframework.sh script.
1 parent 66f7717 commit 760be75

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build-xcframework.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ rm -rf build-ios-device
2020
setup_framework_structure() {
2121
local build_dir=$1
2222
local framework_name="llama"
23-
23+
2424
# Create framework directory structure
2525
mkdir -p ${build_dir}/framework/${framework_name}.framework
2626
mkdir -p ${build_dir}/framework/${framework_name}.framework/Headers
2727
mkdir -p ${build_dir}/framework/${framework_name}.framework/Modules
28-
28+
2929
# Copy all required headers.
3030
cp include/llama.h ${build_dir}/framework/${framework_name}.framework/Headers/
3131
cp ggml/include/ggml.h ${build_dir}/framework/${framework_name}.framework/Headers/
@@ -34,10 +34,10 @@ setup_framework_structure() {
3434
cp ggml/include/ggml-metal.h ${build_dir}/framework/${framework_name}.framework/Headers/
3535
cp ggml/include/ggml-cpu.h ${build_dir}/framework/${framework_name}.framework/Headers/
3636
cp ggml/include/ggml-blas.h ${build_dir}/framework/${framework_name}.framework/Headers/
37-
37+
3838
# Create module map that describes how which headers are part of the llama module.
3939
# This enables swift code to import 'llama' and get access to all public interfaces
40-
# the headers with the usage of export *. For example, LibLlama.swift imports the
40+
# the headers with the usage of export *. For example, LibLlama.swift imports the
4141
# 'llama' module.
4242
cat > ${build_dir}/framework/${framework_name}.framework/Modules/module.modulemap << EOF
4343
framework module llama {
@@ -48,7 +48,7 @@ framework module llama {
4848
header "ggml-metal.h"
4949
header "ggml-cpu.h"
5050
header "ggml-blas.h"
51-
51+
5252
export *
5353
}
5454
EOF

0 commit comments

Comments
 (0)