[arm64] Set march to armv8.2-a+fp16, fix posix math
The march can be reduces later if needed. Use arm64 optimized math, and set std=c11 so __FLT_EVAL_METHOD__ is 0 and not 16: https://gcc.gnu.org/bugzilla//show_bug.cgi?id=100854
This commit is contained in:
@@ -40,6 +40,7 @@ rule ArchitectureSetup architecture
|
||||
switch $(cpu) {
|
||||
case ppc : archFlags += -mcpu=440fp ;
|
||||
case arm : archFlags += -march=armv7-a -mfloat-abi=hard ;
|
||||
case arm64 : archFlags += -march=armv8.2-a+fp16 ;
|
||||
case x86 : archFlags += -march=pentium ;
|
||||
case riscv64 : archFlags += -march=rv64gc ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user