appleseedhq / appleseed

A modern open source rendering engine for animation and visual effects
https://appleseedhq.net/
MIT License
2.19k stars 329 forks source link

Fix Apple Silicon build #2915

Open Willem871 opened 3 years ago

Willem871 commented 3 years ago

Only include x86 specific headers and code when APPLESEED_X86 is defined. This fixes the build of system.cpp on Apple Silicon.

pjessesco commented 2 years ago

Hi @Willem871 , is it possible to build on macOS in current master branch??

It would be nice if you can share how you build on recent version of macOS.

Willem871 commented 2 years ago

Hi @pjessesco. We use the master branch of commit a6de6fb5c9618b2523d9b5eb4f8f4d9311234c53. We have working macOS (Big Sur) builds (both Intel and ARM). Next to this fix we also needed the sse2neon library to convert the SSE instructions in src/appleseed/foundation/platform/sse.h to NEON on ARM architectures. We didn't submit a pull request for this one, since we had to do some custom tweaks.