dmd omission
Lars Ivar Igesund <[email protected]> Thu, 05 Aug 2004 19:57:26 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Seems like some stuff was omitted when I made the define_action changes. Here's the patch to fix it. Lars Ivar Igesund
dmd.diff
(text/plain, 843 B)
Index: dmd.py
===================================================================
RCS file: /cvsroot/a-a-p/Exec/tools/dmd.py,v
retrieving revision 1.10
diff -u -r1.10 dmd.py
--- dmd.py 21 Jun 2004 12:21:09 -0000 1.10
+++ dmd.py 5 Aug 2004 17:50:32 -0000
@@ -54,7 +54,15 @@
# Build a program from object files
define_action("build_dmd", 0, """
DLINKFLAGS += /DELEXECUTABLE
- :sys $DMD -L$*?DLINKFLAGS -L+$*?LIBS -of$target $source
+ dbg =
+ DEBUG ?=
+ @if _no.DEBUG == 'yes':
+ dbg = -g
+ opt =
+ @if _no.OPTIMIZE and int(_no.OPTIMIZE) > 0:
+ opt = -O
+ :sys $DMD $?DFLAGS $?DVERSION $opt $dbg $?DDEBUG $?DIMPORT
+ -L$*?DLINKFLAGS -L+$*?LIBS -of$target $source
""",
outtypes = ["default"],
intypes = ["object"])