mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[FREELDR] Disable SSE instructions for GCC x64
Even if all x64 CPUs can handle SSE instructions, prevent GCC x64 to generate them, as FreeLoader is not ready to handle them.
This commit is contained in:
parent
bbf7b5b72a
commit
bfedf9760c
1 changed files with 4 additions and 0 deletions
|
@ -225,6 +225,10 @@ if(NOT MSVC AND ARCH STREQUAL "i386" AND SARCH STREQUAL "xbox")
|
|||
# Prevent a warning when doing a memcmp with address 0
|
||||
set_source_files_properties(arch/i386/xbox/xboxmem.c PROPERTIES COMPILE_FLAGS "-Wno-nonnull")
|
||||
endif()
|
||||
if(ARCH STREQUAL "amd64" AND NOT MSVC)
|
||||
# Prevent using SSE (not support in freeldr)
|
||||
target_compile_options(freeldr_common PUBLIC -mno-sse)
|
||||
endif()
|
||||
|
||||
set(PCH_SOURCE
|
||||
${FREELDR_BOOTLIB_SOURCE}
|
||||
|
|
Loading…
Reference in a new issue