16 lines
742 B
Diff
16 lines
742 B
Diff
|
diff --git a/ggml/src/ggml-metal.m b/ggml/src/ggml-metal.m
|
||
|
index b56c3604..400d43f4 100644
|
||
|
--- a/ggml/src/ggml-metal.m
|
||
|
+++ b/ggml/src/ggml-metal.m
|
||
|
@@ -377,8 +377,8 @@ static void ggml_metal_log(enum ggml_log_level level, const char * format, ...){
|
||
|
#if GGML_METAL_EMBED_LIBRARY
|
||
|
GGML_METAL_LOG_INFO("%s: using embedded metal library\n", __func__);
|
||
|
|
||
|
- extern const char ggml_metallib_start[];
|
||
|
- extern const char ggml_metallib_end[];
|
||
|
+ extern const char *ggml_metallib_start;
|
||
|
+ extern const char *ggml_metallib_end;
|
||
|
|
||
|
NSString * src = [[NSString alloc] initWithBytes:ggml_metallib_start length:(ggml_metallib_end-ggml_metallib_start) encoding:NSUTF8StringEncoding];
|
||
|
#else
|