Force -O0 in 2005/giljade - optimiser breaks it
This commit is contained in:
1 parent
a2e77e1ca6
commit
c7a10649ab
2 files changed
+8
-2
No files matched your search
@@ -69,8 +69,9 @@ CDEFINE=
|
|||||||
CINCLUDE= -include stdio.h -include string.h -include unistd.h -include stdlib.h
|
CINCLUDE= -include stdio.h -include string.h -include unistd.h -include stdlib.h
|
||||||
|
|
||||||
# Optimization
|
# Optimization
|
||||||
|
# We DISABLE the optimiser because having it enabled BREAKS the program.
|
||||||
#
|
#
|
||||||
OPT=
|
OPT= -O0
|
||||||
|
|
||||||
# Default flags for ANSI C compilation
|
# Default flags for ANSI C compilation
|
||||||
#
|
#
|
||||||
@@ -135,8 +136,10 @@ all: data ${TARGET}
|
|||||||
clean clobber install love haste waste maker easter_egg \
|
clean clobber install love haste waste maker easter_egg \
|
||||||
sandwich supernova deep_magic magic charon pluto
|
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
|
${PROG}: ${PROG}.c
|
||||||
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
${CC} ${CFLAGS} -O0 $< -o $@ ${LDFLAGS}
|
||||||
|
|
||||||
test: ${PROG} test.sh
|
test: ${PROG} test.sh
|
||||||
./test.sh
|
./test.sh
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
make
|
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:
|
### Bugs and (Mis)features:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user