mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[CMAKE]
Globally disable SSE when compiling with VS 11 or newer. See issue #7174 for more details. svn path=/trunk/; revision=56859
This commit is contained in:
parent
110a73b8c5
commit
60c98d7414
2 changed files with 6 additions and 5 deletions
|
@ -32,11 +32,6 @@ if(ARCH MATCHES arm)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
# for VS 2012 we need to explicitly disable SSE
|
||||
if (MSVC_VERSION GREATER 1699 AND ARCH MATCHES i386)
|
||||
add_definitions(/arch:IA32)
|
||||
endif ()
|
||||
|
||||
list(APPEND FREELDR_COMMON_SOURCE
|
||||
cmdline.c
|
||||
debug.c
|
||||
|
|
|
@ -21,6 +21,12 @@ add_definitions(/Dinline=__inline /D__STDC__=1)
|
|||
|
||||
add_compile_flags("/X /GR- /GS- /Zl /W3")
|
||||
|
||||
# HACK: for VS 11+ we need to explicitly disable SSE, which is off by
|
||||
# default for older compilers. See bug #7174
|
||||
if (MSVC_VERSION GREATER 1699 AND ARCH MATCHES i386)
|
||||
add_compile_flags("/arch:IA32")
|
||||
endif ()
|
||||
|
||||
# C4700 is almost always likely to result in broken code, so mark it as an error
|
||||
add_compile_flags("/we4700")
|
||||
|
||||
|
|
Loading…
Reference in a new issue