Force -O0 in 2005/giljade - optimiser breaks it

This commit is contained in:
Cody Boone Ferguson committed 2023-12-19 10:07:06 -08:00
1 parent a2e77e1ca6
commit c7a10649ab
2 files changed
+8 -2

No files matched your search

+5 -2
View File
@@ -69,8 +69,9 @@ CDEFINE=
CINCLUDE= -include stdio.h -include string.h -include unistd.h -include stdlib.h
# Optimization
# We DISABLE the optimiser because having it enabled BREAKS the program.
#
OPT=
OPT= -O0
# Default flags for ANSI C compilation
#
@@ -135,8 +136,10 @@ all: data ${TARGET}
clean clobber install love haste waste maker easter_egg \
sandwich supernova deep_magic magic charon pluto
# NOTE: We FORCE the use of -O0 even if someone overrides it because this entry
# will not work with it enabled.
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
${CC} ${CFLAGS} -O0 $< -o $@ ${LDFLAGS}
test: ${PROG} test.sh
./test.sh
+3
View File
@@ -4,6 +4,9 @@
make
```
NOTE: We FORCE the use of -O0 even if someone overrides it because this entry
will not work with it enabled.
### Bugs and (Mis)features: