Closed hanseuljun closed 3 years ago
Using Apple clang 12.0.5, to build for iOS with CMake, the below error happens. clang: error: the clang compiler does not support '-march=native'
I am not sure but my guess is -march=native is for utilizing the instruction set of the build machine, so perhaps someone thought supporting it for a cross compilation did not make sense. I'm not sure but below are all I've found from forums: https://stackoverflow.com/questions/65966969/why-does-march-native-not-work-on-apple-m1 https://developer.apple.com/forums/thread/672654
By the way, my machine is an x86-64, not an M1, so this is not something M1 chip specific.
So, I added an option to deactivate -march=native. Also, thanks for the recent ios-fix update with LINUX_ARM!
Seems like it should still work for people who are building with default settings
Using Apple clang 12.0.5, to build for iOS with CMake, the below error happens. clang: error: the clang compiler does not support '-march=native'
I am not sure but my guess is -march=native is for utilizing the instruction set of the build machine, so perhaps someone thought supporting it for a cross compilation did not make sense. I'm not sure but below are all I've found from forums: https://stackoverflow.com/questions/65966969/why-does-march-native-not-work-on-apple-m1 https://developer.apple.com/forums/thread/672654
By the way, my machine is an x86-64, not an M1, so this is not something M1 chip specific.
So, I added an option to deactivate -march=native. Also, thanks for the recent ios-fix update with LINUX_ARM!