From 7d4e9b144f5984d4bae002c787dd7a607e10d85f Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Sat, 4 Apr 2020 19:50:45 +0200 Subject: [PATCH] Pass the option -msse also on x86_64 In some cases of chroot-based debian build environments where the host is 64-bit and target 32-bit, the system processor of cmake is not correctly set. To work this around, pass the -msse2 flag also in case of 64-bit system processor; it will be harmless for the case of normal builds. --- cmake/SfizzConfig.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/SfizzConfig.cmake b/cmake/SfizzConfig.cmake index bbf9f43e..77415fdf 100644 --- a/cmake/SfizzConfig.cmake +++ b/cmake/SfizzConfig.cmake @@ -32,7 +32,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") add_compile_options(-Wextra) add_compile_options(-ffast-math) add_compile_options(-fno-omit-frame-pointer) # For debugging purposes - if (SFIZZ_SYSTEM_PROCESSOR MATCHES "^i.86$") + if (SFIZZ_SYSTEM_PROCESSOR MATCHES "^(i.86|x86_64)$") add_compile_options(-msse2) endif() elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")