mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-06-28 04:15:21 +00:00
ggml : fix weak alias win32 (whisper/0)
ggml-ci
This commit is contained in:
@ -523,6 +523,9 @@ void ggml_barrier(struct ggml_threadpool * tp);
|
|||||||
// Note: C name mangling varies across different calling conventions
|
// Note: C name mangling varies across different calling conventions
|
||||||
// see https://learn.microsoft.com/en-us/cpp/build/reference/decorated-names?view=msvc-170
|
// see https://learn.microsoft.com/en-us/cpp/build/reference/decorated-names?view=msvc-170
|
||||||
# define GGML_WEAK_ALIAS(name, alias) GGML_DO_PRAGMA(comment(linker, "/alternatename:" #name "=" #alias))
|
# define GGML_WEAK_ALIAS(name, alias) GGML_DO_PRAGMA(comment(linker, "/alternatename:" #name "=" #alias))
|
||||||
|
#elif defined(_MSC_VER) && defined(WIN32)
|
||||||
|
// ref: https://github.com/ggml-org/whisper.cpp/pull/3239#issuecomment-2958224591
|
||||||
|
# define GGML_WEAK_ALIAS(name, alias) GGML_DO_PRAGMA(comment(linker, "/alternatename:_" #name "=_" #alias))
|
||||||
#else
|
#else
|
||||||
# error "Unsupported compiler for GGML_WEAK_ALIAS"
|
# error "Unsupported compiler for GGML_WEAK_ALIAS"
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user