File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -91,15 +91,17 @@ destroot {
91
91
92
92
post-destroot {
93
93
xinstall -d ${destroot}${prefix} /share/whisper/ggml
94
- xinstall ${workpath} /build/bin/ggml-metal.metal ${destroot}${prefix} /share/whisper/ggml
95
- xinstall ${workpath} /build/bin/ggml-common.h ${destroot}${prefix} /share/whisper/ggml
96
94
xinstall -d ${destroot}${prefix} /lib
97
95
xinstall ${workpath} /build/src/libwhisper.${version} .dylib ${destroot}${prefix} /lib/libwhisper.1.dylib
98
96
xinstall ${workpath} /build/ggml/src/libggml.dylib ${destroot}${prefix} /lib/libggml.dylib
99
97
xinstall ${workpath} /build/ggml/src/libggml-cpu.dylib ${destroot}${prefix} /lib/libggml-cpu.dylib
100
98
xinstall ${workpath} /build/ggml/src/libggml-base.dylib ${destroot}${prefix} /lib/libggml-base.dylib
101
99
xinstall ${workpath} /build/ggml/src/ggml-blas/libggml-blas.dylib ${destroot}${prefix} /lib/libggml-blas.dylib
102
- xinstall ${workpath} /build/ggml/src/ggml-metal/libggml-metal.dylib ${destroot}${prefix} /lib/libggml-metal.dylib
100
+ if {${os.platform} eq " darwin" && ${os.subplatform} eq " macosx" && ${os.major} >= 15} {
101
+ xinstall ${workpath} /build/bin/ggml-metal.metal ${destroot}${prefix} /share/whisper/ggml
102
+ xinstall ${workpath} /build/bin/ggml-common.h ${destroot}${prefix} /share/whisper/ggml
103
+ xinstall ${workpath} /build/ggml/src/ggml-metal/libggml-metal.dylib ${destroot}${prefix} /lib/libggml-metal.dylib
104
+ }
103
105
}
104
106
105
107
You can’t perform that action at this time.
0 commit comments