diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-12-06 15:20:45 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-12-06 15:20:45 -0200 |
| commit | 64864f094b9be22662fe1d0becb02dee97851067 (patch) | |
| tree | 53e05b8b3f61a38c14dd4a30cb6e458724becccf | |
| parent | 9bd3fc10391ea6868c324d9d09a0fca4ef453015 (diff) | |
| download | lua-64864f094b9be22662fe1d0becb02dee97851067.tar.gz lua-64864f094b9be22662fe1d0becb02dee97851067.tar.bz2 lua-64864f094b9be22662fe1d0becb02dee97851067.zip | |
new options for debugging Lua (HARDSTACKTESTS & EXTERNMEMCHECK)
| -rw-r--r-- | makefile | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | # | 1 | # |
| 2 | ## $Id: makefile,v 1.37 2002/08/16 20:02:13 roberto Exp roberto $ | 2 | ## $Id: makefile,v 1.38 2002/10/25 21:38:17 roberto Exp $ |
| 3 | ## Makefile | 3 | ## Makefile |
| 4 | ## See Copyright Notice in lua.h | 4 | ## See Copyright Notice in lua.h |
| 5 | # | 5 | # |
| @@ -16,13 +16,13 @@ | |||
| 16 | # you may need to adapat the code, too. | 16 | # you may need to adapat the code, too. |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | # DEBUG = -g -DLUA_USER_H='"ltests.h"' | 19 | # DEBUG = -g -DLUA_USER_H='"ltests.h"' # -DHARDSTACKTESTS -DEXTERNMEMCHECK |
| 20 | OPTIMIZE = -O2 \ | 20 | OPTIMIZE = -O2 \ |
| 21 | -D'lua_number2int(i,d)=__asm__("fldl %1\nfistpl %0":"=m"(i):"m"(d))' \ | 21 | # -D'lua_number2int(i,d)=__asm__("fldl %1\nfistpl %0":"=m"(i):"m"(d))' \ |
| 22 | -fomit-frame-pointer | 22 | # -fomit-frame-pointer |
| 23 | 23 | ||
| 24 | CONFIG = -D_POSIX_SOURCE -DUSE_POPEN $(DEBUG) $(OPTIMIZE) | ||
| 25 | 24 | ||
| 25 | CONFIG = -D_POSIX_SOURCE $(DEBUG) $(OPTIMIZE) # -DUSE_POPEN | ||
| 26 | 26 | ||
| 27 | 27 | ||
| 28 | # Compilation parameters | 28 | # Compilation parameters |
