1
1
mirror of https://github.com/rui314/mold.git synced 2024-08-16 08:20:23 +03:00

Fix cross-compile lto on MacOS

This commit is contained in:
LoveSy 2024-07-03 21:55:22 +08:00 committed by GitHub
parent b145377c39
commit 7305a5c5dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -569,6 +569,8 @@ template <typename E>
static bool is_llvm(Context<E> &ctx) {
#ifdef __MINGW32__
return ctx.arg.plugin.ends_with("LLVMgold.dll");
#elif __APPLE__
return ctx.arg.plugin.ends_with("LLVMgold.dylib");
#else
return ctx.arg.plugin.ends_with("LLVMgold.so");
#endif