BuildSystem: Enable sse and sse2 for all programs and libraries

This is default on x86_64 but not on the 32 bit target. banan-os
already requires the CPU to support SSE even on 32 bit platforms.
This commit is contained in:
Bananymous 2025-07-18 18:19:20 +03:00
parent e16fb6a8e9
commit 22542a3a71
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ foreach(library ${USERSPACE_LIBRARIES})
# This is to allow cmake to link when libc updates # This is to allow cmake to link when libc updates
target_link_options(${library_lower} PRIVATE -nolibc) target_link_options(${library_lower} PRIVATE -nolibc)
# Default compile options # Default compile options
target_compile_options(${library_lower} PRIVATE -g -O2 -Wall -Wextra -Werror) target_compile_options(${library_lower} PRIVATE -g -O2 -Wall -Wextra -Werror -msse -msse2)
# set SONAME as cmake doesn't set it for some reason?? # set SONAME as cmake doesn't set it for some reason??
set_target_properties(${library_lower} PROPERTIES LINK_FLAGS "-Wl,-soname,${library_lower}.so") set_target_properties(${library_lower} PROPERTIES LINK_FLAGS "-Wl,-soname,${library_lower}.so")

View File

@ -57,5 +57,5 @@ foreach(project ${USERSPACE_PROGRAMS})
# This is to allow cmake to link when libc updates # This is to allow cmake to link when libc updates
target_link_options(${project} PRIVATE -nolibc) target_link_options(${project} PRIVATE -nolibc)
# Default compile options # Default compile options
target_compile_options(${project} PRIVATE -g -O2 -Wall -Wextra -Werror) target_compile_options(${project} PRIVATE -g -O2 -Wall -Wextra -Werror -msse -msse2)
endforeach() endforeach()