From 95cb11121452c434ad646161ecbaceccee05c9a4 Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Thu, 11 Jan 2024 17:04:57 -0800 Subject: [PATCH] build: Add -mno-sse for x86_64 build It was reported that using -mno-sse2 alone can crash clang compiler when the code it compiles accesses floating-point or vector types. It seems adding -mno-sse fix the problem. I thought -mno-sse2 implies it but that doesn't seem like the case and caused a problem. Actually recent versions of clang have -mgeneral-regs-only option and we should prefer it. But let's keep the fix minimal for now. Signed-off-by: Namhyung Kim --- check-deps/Makefile.check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-deps/Makefile.check b/check-deps/Makefile.check index c9059673a..0637b1e36 100644 --- a/check-deps/Makefile.check +++ b/check-deps/Makefile.check @@ -12,7 +12,7 @@ ifneq ($(wildcard $(objdir)/check-deps/cxa_demangle),) endif ifneq ($(wildcard $(objdir)/check-deps/cc_has_mno_sse2),) - LIB_CFLAGS += -mno-sse2 + LIB_CFLAGS += -mno-sse -mno-sse2 endif ifneq ($(wildcard $(objdir)/check-deps/have_libpython3),)