From a3359c0e7d85bf4752cda3b00892ecd5ef691077 Mon Sep 17 00:00:00 2001 From: spicyjpeg Date: Sun, 18 Dec 2022 16:19:31 +0100 Subject: Bump to v0.22, update CMake scripts and docs --- libpsn00b/cmake/flags.cmake | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'libpsn00b/cmake/flags.cmake') diff --git a/libpsn00b/cmake/flags.cmake b/libpsn00b/cmake/flags.cmake index 1ca25c2..fdc479e 100644 --- a/libpsn00b/cmake/flags.cmake +++ b/libpsn00b/cmake/flags.cmake @@ -14,7 +14,6 @@ target_compile_options( # Options common to all target types -g -Wa,--strip-local-absolute - -O2 -ffreestanding -fno-builtin -nostdlib @@ -29,7 +28,6 @@ target_compile_options( -mabi=32 -mno-mt -mno-llsc - -mdivide-breaks $<$: # Options common to all target types (C++) -fno-exceptions @@ -38,6 +36,14 @@ target_compile_options( -fno-threadsafe-statics -fno-use-cxa-atexit > + $, + # Options for debug builds + -Og + -mdivide-breaks + , + # Options for release builds + -O2 + > $<$>,EXECUTABLE_GPREL>: # Options for executables with $gp-relative addressing -G8 @@ -86,5 +92,9 @@ target_link_options( target_compile_definitions( psn00bsdk INTERFACE PSN00BSDK=1 - $<$:NDEBUG=1> + $, + #NDEBUG=0 + , + NDEBUG=1 + > ) -- cgit v1.2.3