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.
This commit is contained in:
parent
5a61f3f4a9
commit
7d4e9b144f
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue