mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[SDK] gcc.cmake: Only add -mstackrealign on i386 (#4016)
This option is only useful for the i386 architecture and breaks ARM builds. Reviewed-by: Victor Perevertkin <[email protected]> Reviewed-by: Stanislav Motylkov <[email protected]> Signed-off-by: Konrad Dybcio <[email protected]>
This commit is contained in:
+1
-3
@@ -45,8 +45,6 @@ add_compile_options(-pipe -fms-extensions -fno-strict-aliasing)
|
||||
# The case for C++ is handled through the reactos_c++ INTERFACE library
|
||||
add_compile_options("$<$<NOT:$<COMPILE_LANGUAGE:CXX>>:-nostdinc>")
|
||||
|
||||
add_compile_options(-mstackrealign)
|
||||
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
add_compile_options(-fno-aggressive-loop-optimizations)
|
||||
if (DBG)
|
||||
@@ -145,7 +143,7 @@ if(LTCG)
|
||||
endif()
|
||||
|
||||
if(ARCH STREQUAL "i386")
|
||||
add_compile_options(-fno-optimize-sibling-calls -fno-omit-frame-pointer)
|
||||
add_compile_options(-fno-optimize-sibling-calls -fno-omit-frame-pointer -mstackrealign)
|
||||
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_options(-mpreferred-stack-boundary=3 -fno-set-stack-executable)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user