Add -fno-strict-aliasing

By default libsm64 is compiled with no optimisation so this doesn't matter, but if people want optimisation this stops it from breaking
This commit is contained in:
circuit10 2023-08-12 01:22:23 +01:00 committed by GitHub
parent 5206fd298f
commit 8cad1ae39e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ else
CXX := c++
LDFLAGS := -lm -shared
endif
CFLAGS := -g -Wall -Wno-unused-function -fPIC -fvisibility=hidden -DSM64_LIB_EXPORT -DGBI_FLOATS -DVERSION_US -DNO_SEGMENTED_MEMORY
CFLAGS := -fno-strict-aliasing -g -Wall -Wno-unused-function -fPIC -fvisibility=hidden -DSM64_LIB_EXPORT -DGBI_FLOATS -DVERSION_US -DNO_SEGMENTED_MEMORY
SRC_DIRS := src src/decomp src/decomp/engine src/decomp/include/PR src/decomp/game src/decomp/pc src/decomp/pc/audio src/decomp/mario src/decomp/tools src/decomp/audio
BUILD_DIR := build