From d4188f29b178b5bd20c216261debc695fbf4e44c Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 18 Aug 2023 14:51:53 +0900 Subject: [PATCH] Use -Og instead of -O0 in Debug builds --- Makefile | 2 +- wasm_build/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0693eb8..58a313c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ ifdef DEBUG - COMMON_FLAGS = -g -O0 + COMMON_FLAGS = -g -Og else COMMON_FLAGS = -DNDEBUG -O3 endif diff --git a/wasm_build/Makefile b/wasm_build/Makefile index e237bb9..261aeec 100644 --- a/wasm_build/Makefile +++ b/wasm_build/Makefile @@ -1,7 +1,7 @@ ifdef RELEASE OTHER_FLAGS = -DNDEBUG -O3 else - OTHER_FLAGS = -O0 + OTHER_FLAGS = -Og endif SOURCES = \