Userspace: Compile programs and libraries with -Wall -Wextra -Werror

This commit is contained in:
2024-09-26 15:20:07 +03:00
parent e6ed5a388d
commit cea6dedccc
6 changed files with 8 additions and 11 deletions

View File

@@ -43,7 +43,7 @@ foreach(project ${USERSPACE_PROGRAMS})
# This is to allow cmake to link when libc updates
target_link_options(${project} PRIVATE -nolibc)
# Default compile options
target_compile_options(${project} PRIVATE -g -O2)
target_compile_options(${project} PRIVATE -g -O2 -Wall -Wextra -Werror)
target_compile_definitions(${project} PRIVATE __enable_sse=${BANAN_ENABLE_SSE})
if (NOT BANAN_ENABLE_SSE)