While building the project with cmake, an unexpected error occurred in relation to my laptop CPU architecture. Currently, I'm running a Parallels VM of Windows 11 on a M1 Max MacBook Pro. As such, I discovered that the Apple Silicon ARM64 architecture was not supported - possible use cases and scenarios include running windows on a Virtual Machine (VM), dual-boot or on Apple Bootcamp. Therefore, I have added the ARM64 [x86_64] CPU type under .\cmake\Modules\SwiftSupport.cmake. After trying and testing it out, it now works with support for M1/M2 Macs.
Original Error
The original error occurred while running the suggested session line:
cmake -B build -D BUILD_SHARED_LIBS=YES -D CMAKE_BUILD_TYPE=Release -D CMAKE_Swift_FLAGS="-sdk %SDKROOT%" -G Ninja -S .
Hi @compnerd. I have fixed up the commit message and pushed a new commit - also removed the comment I made on the SwiftSupport.cmake file. Thanks for clearing things up. 😊
Solution
While building the project with
cmake
, an unexpected error occurred in relation to my laptop CPU architecture. Currently, I'm running a Parallels VM of Windows 11 on a M1 Max MacBook Pro. As such, I discovered that the Apple SiliconARM64
architecture was not supported - possible use cases and scenarios include running windows on a Virtual Machine (VM), dual-boot or on Apple Bootcamp. Therefore, I have added theARM64 [x86_64]
CPU type under.\cmake\Modules\SwiftSupport.cmake
. After trying and testing it out, it now works with support for M1/M2 Macs.Original Error
The original error occurred while running the suggested session line:
cmake -B build -D BUILD_SHARED_LIBS=YES -D CMAKE_BUILD_TYPE=Release -D CMAKE_Swift_FLAGS="-sdk %SDKROOT%" -G Ninja -S .
This was the output at the end: