danger / swift

⚠️ Stop saying "you forgot to …" in code review
https://danger.systems/swift/
MIT License
1.04k stars 135 forks source link

Patch-fix for `error: incompatible target arm64-apple-macosx10.10` on M1 mac #521

Closed 417-72KI closed 2 years ago

417-72KI commented 2 years ago

Fixes: #464

Note: This is not a fundamental solution, and should be reverted when compiler's bug fixes.

417-72KI commented 2 years ago

Although it has not been confirmed, I think the original issue is caused by some bugs on complier or linker in arm64. This patch makes it to build and run in x86_64 arch (it means to run on Rosetta 2, and it behaves as if it is running on Intel-mac).

It will be unnecessary if there is other way to build Dangerfile.swift script expectedly or my prediction is wrong.