The code heavily uses aliasing and the compiler optimized this wrong
This commit is contained in:
2
Makefile
2
Makefile
@@ -4,7 +4,7 @@ SRCS:=$(wildcard src/*.c src/snes/*.c) third_party/gl_core/gl_core_3_1.c
|
||||
OBJS:=$(SRCS:%.c=%.o)
|
||||
|
||||
PYTHON:=/usr/bin/env python3
|
||||
CFLAGS:=$(if $(CFLAGS),$(CFLAGS),-O2 -Werror )
|
||||
CFLAGS:=$(if $(CFLAGS),$(CFLAGS),-O2 -fno-strict-aliasing -Werror )
|
||||
CFLAGS:=${CFLAGS} $(shell sdl2-config --cflags) -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 -I.
|
||||
|
||||
ifeq (${OS},Windows_NT)
|
||||
|
||||
Reference in New Issue
Block a user