PerfectlySoft / Perfect

Server-side Swift. The Perfect core toolset and framework for Swift Developers. (For mobile back-end development, website and API development, and more…)
https://www.perfect.org
Apache License 2.0
13.83k stars 944 forks source link

M1 building issues #301

Closed omrd closed 3 years ago

omrd commented 3 years ago

These changes allow PerfectLib to compile on M1 Macs.

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

RockfordWei commented 3 years ago

I think it is worthy to try just changing the line #71 from #if os(Linux) || os(macOS) to #if os(linux) only, so you don’t have to change too many lines @omrd , it sounds like the easiest solution