File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ rm -rf build-ios-device
2020setup_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
4343framework 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}
5454EOF
You can’t perform that action at this time.
0 commit comments