From 1851ca714b75b06c52cd3e142e96964332c7efbd Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Thu, 16 Feb 2023 22:11:50 +0100 Subject: [PATCH] intel: enable -mfpmath=sse on x86 It's not enabled by default until `-msse2` and -ffast-math is passed. We pass only the `-msse2`. Let's align it with main `meson.build`. See: https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html (-mfpmath). Acked-by: Yonggang Luo Signed-off-by: David Heidelberg Part-of: --- src/intel/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/meson.build b/src/intel/meson.build index 53e72e5eebb..57307b579ff 100644 --- a/src/intel/meson.build +++ b/src/intel/meson.build @@ -21,7 +21,7 @@ c_sse2_args = [] c_sse2_arg = [] if ['x86', 'x86_64'].contains(host_machine.cpu_family()) - c_sse2_arg = ['-msse2'] + c_sse2_arg = ['-msse2', '-mfpmath=sse'] c_sse2_args = [c_sse2_arg, '-mstackrealign'] endif inc_intel = include_directories('.')