I'm very new to Xcode, and developing SIMD(SSE/AVX) codes for macOS with Xcode 12.4 (12D4e) on macOS Catalina 10.15.7.
This very simple code can be compiled in Debug scheme:
#include <immintrin.h>
int main(int argc, const char * argv[]) {
return 0;
}
But in Release Scheme, the header makes error: "Too few arguments to function call, expected 2, have 0" for this line of "mmintrin.h".
__builtin_ia32_emms();
What can I do to compile it in Release scheme?