Skip to content

Commit 7cab505

Browse files
committed
build: Fix compiler optimisation flags
Ensure the flags apply to the C compiler, not C++, as there is no C++ in this core. With this, the Miyoo platform can reach 60fps.
1 parent 583c422 commit 7cab505

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,9 @@ ifeq (,$(findstring msvc,$(platform)))
593593
endif
594594

595595
ifeq ($(DEBUG), 1)
596-
CXXFLAGS += -O0 -g
596+
CFLAGS += -O0 -g
597597
else
598-
CXXFLAGS += -O2 -DNDEBUG
598+
CFLAGS += -O2 -DNDEBUG
599599
endif
600600

601601
ifneq (,$(findstring msvc,$(platform)))

0 commit comments

Comments
 (0)