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:
commit
5ab3708e9f
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -109,7 +109,7 @@ jobs:
|
||||
!build/CMakeFiles
|
||||
|
||||
build-macos:
|
||||
runs-on: macos-11
|
||||
runs-on: macos-12
|
||||
strategy:
|
||||
matrix:
|
||||
target:
|
||||
|
@ -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