From 13ecef0b0a803e082dcc1c886187f8073ee85cb6 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 20 Feb 2022 14:53:10 -0800 Subject: [PATCH] Reduce optimization level until undefined behavior can be found --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 29ce8410d..850a13eec 100644 --- a/Makefile +++ b/Makefile @@ -384,7 +384,10 @@ MIPSBIT := -32 ifeq ($(DEBUG),1) OPT_FLAGS := -g else - OPT_FLAGS := -O2 + # can't use O2 right now, coop-compiler produces strange graphical errors + # likely due to undefined behavior somewhere + #OPT_FLAGS := -O2 + OPT_FLAGS := -O1 endif # Set BITS (32/64) to compile for