summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-09-03 15:25:13 +0100
committerJosé Fonseca <jfonseca@vmware.com>2014-09-03 22:34:27 +0100
commitc85cf27fff3c4db8e0058c121ccf115b16c32d9b (patch)
tree5fb3df6a4ad26bae4f445d7f75efc03f95e3e8f4
parentfd9d01d05f6c799369bc13d9b471fab7b3c87512 (diff)
cmake: Fix SSE2 on x86 w/ mingw.
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index acea9688..0a9d7749 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -184,9 +184,9 @@ else ()
# Enable SSE2 intrinsics on x86
if (CMAKE_SIZEOF_VOID_P EQUAL 4)
- CHECK_CXX_COMPILER_FLAG("-msse2" CXX_COMPILER_FLAG_SSE2)
+ CHECK_CXX_COMPILER_FLAG("-msse2 -mincoming-stack-boundary=2" CXX_COMPILER_FLAG_SSE2)
if (CXX_COMPILER_FLAG_SSE2)
- add_definitions ("-msse2")
+ add_definitions ("-msse2 -mincoming-stack-boundary=2")
endif ()
endif ()