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:
parent
b145377c39
commit
7305a5c5dd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user