Module: Mesa
Branch: main
Commit: 446630ab422d6967b68d3b801df33f883d8fb555
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=446630ab422d6967b68d3b801df33f883d8fb555

Author: Yonggang Luo <[email protected]>
Date:   Fri Feb 17 14:25:54 2023 +0800

meson: When sse2 enabled, both c and cpp using sse2 options

Signed-off-by: Yonggang Luo <[email protected]>
Reviewed-by: David Heidelberg <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21375>

---

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index d0d63328fe2..36c1d0d7808 100644
--- a/meson.build
+++ b/meson.build
@@ -1126,7 +1126,7 @@ if host_machine.cpu_family().startswith('x86')
         # XXX: We could have SSE without -mstackrealign if we always used
         # __attribute__((force_align_arg_pointer)), but that's not
         # always the case.
-        c_args += ['-msse2', '-mfpmath=sse', '-mstackrealign']
+        c_cpp_args += ['-msse2', '-mfpmath=sse', '-mstackrealign']
       else
         # GCC on x86 (not x86_64) with -msse* assumes a 16 byte aligned stack, 
but
         # that's not guaranteed

Reply via email to