1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-05 17:17:40 +03:00

Merge pull request #1298 from yujincheng08/patch-1

Fix cross-compile lto on MacOS
This commit is contained in:
Rui Ueyama 2024-07-05 19:45:10 +09:00 committed by GitHub
commit 5ab3708e9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -109,7 +109,7 @@ jobs:
!build/CMakeFiles
build-macos:
runs-on: macos-11
runs-on: macos-12
strategy:
matrix:
target:

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