From: sean Date: Fri, 21 Nov 2008 23:08:16 +0000 (+0000) Subject: * Removed "-debug" from the list of debug build flags. The purpose of debug builds... X-Git-Url: https://git.llucax.com/software/druntime.git/commitdiff_plain/b4e307abd5e0e6f29d5726ac65878db14c4f07ae?ds=sidebyside;hp=14babdacbde141401ef82ccced25e24ec201344b * Removed "-debug" from the list of debug build flags. The purpose of debug builds is to test user code, not library code. * Fixed an edit error that would have broken unit testing of druntime in trunk. git-svn-id: http://svn.dsource.org/projects/druntime/trunk@48 4a9d5153-6564-4b3f-b5e1-7e8e9dac548f --- diff --git a/src/common/posix.mak b/src/common/posix.mak index 6653e0e..22bb3a9 100644 --- a/src/common/posix.mak +++ b/src/common/posix.mak @@ -27,11 +27,11 @@ CFLAGS_DEBUG=-g $(ADD_CFLAGS) CFLAGS=$(CFLAGS_RELEASE) DFLAGS_RELEASE=-release -O -inline -w -nofloat $(ADD_DFLAGS) -DFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +DFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) DFLAGS=$(DFLAGS_RELEASE) TFLAGS_RELEASE=-O -inline -w -nofloat $(ADD_DFLAGS) -TFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +TFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) TFLAGS=$(TFLAGS_RELEASE) DOCFLAGS=-version=DDoc diff --git a/src/common/win32.mak b/src/common/win32.mak index 4554680..b05948a 100644 --- a/src/common/win32.mak +++ b/src/common/win32.mak @@ -23,15 +23,15 @@ ADD_CFLAGS= ADD_DFLAGS= CFLAGS_RELEASE=-mn -6 -r $(ADD_CFLAGS) -CFLAGS_DEBUG=-D -g -mn -6 -r $(ADD_CFLAGS) +CFLAGS_DEBUG=-g -mn -6 -r $(ADD_CFLAGS) CFLAGS=$(CFLAGS_RELEASE) DFLAGS_RELEASE=-release -O -inline -w -nofloat $(ADD_DFLAGS) -DFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +DFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) DFLAGS=$(DFLAGS_RELEASE) TFLAGS_RELEASE=-O -inline -w -nofloat $(ADD_DFLAGS) -TFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +TFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) TFLAGS=$(TFLAGS_RELEASE) DOCFLAGS=-version=DDoc diff --git a/src/compiler/dmd/posix.mak b/src/compiler/dmd/posix.mak index 9ca608d..dcec213 100644 --- a/src/compiler/dmd/posix.mak +++ b/src/compiler/dmd/posix.mak @@ -27,11 +27,11 @@ CFLAGS_DEBUG=-g $(ADD_CFLAGS) CFLAGS=$(CFLAGS_RELEASE) DFLAGS_RELEASE=-release -O -inline -w -nofloat $(ADD_DFLAGS) -DFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +DFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) DFLAGS=$(DFLAGS_RELEASE) TFLAGS_RELEASE=-O -inline -w -nofloat $(ADD_DFLAGS) -TFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +TFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) TFLAGS=$(TFLAGS_RELEASE) DOCFLAGS=-version=DDoc diff --git a/src/compiler/dmd/win32.mak b/src/compiler/dmd/win32.mak index 3694cd8..dc9ae28 100644 --- a/src/compiler/dmd/win32.mak +++ b/src/compiler/dmd/win32.mak @@ -23,15 +23,15 @@ ADD_CFLAGS= ADD_DFLAGS= CFLAGS_RELEASE=-mn -6 -r $(ADD_CFLAGS) -CFLAGS_DEBUG=-D -g -mn -6 -r $(ADD_CFLAGS) +CFLAGS_DEBUG=-g -mn -6 -r $(ADD_CFLAGS) CFLAGS=$(CFLAGS_RELEASE) DFLAGS_RELEASE=-release -O -inline -w -nofloat $(ADD_DFLAGS) -DFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +DFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) DFLAGS=$(DFLAGS_RELEASE) TFLAGS_RELEASE=-O -inline -w -nofloat $(ADD_DFLAGS) -TFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +TFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) TFLAGS=$(TFLAGS_RELEASE) DOCFLAGS=-version=DDoc diff --git a/src/dmd-posix.mak b/src/dmd-posix.mak index 0f56715..e90d2c3 100644 --- a/src/dmd-posix.mak +++ b/src/dmd-posix.mak @@ -50,9 +50,9 @@ ALL_DOCS= unittest : make -fdmd-posix.mak lib MAKE_LIB="unittest" - dmd -unittest main ../import/core/stdc/stdarg -defaultlib="$(DUP_TARGET)" -debuglib="$(DUP_TARGET)" + dmd -unittest unittest ../import/core/stdc/stdarg -defaultlib="$(DUP_TARGET)" -debuglib="$(DUP_TARGET)" $(RM) stdarg.o - main + unittest release : make -fdmd-posix.mak lib MAKE_LIB="release" @@ -89,7 +89,7 @@ clean : make -C $(DIR_GC) -fposix.mak clean $(RM) $(LIB_MASK) $(RM) $(DUP_MASK) - $(RM) main main.o + $(RM) unittest unittest.o install : make -C $(DIR_CC) -fposix.mak install diff --git a/src/dmd-win32.mak b/src/dmd-win32.mak index f79f02f..c2f18bb 100644 --- a/src/dmd-win32.mak +++ b/src/dmd-win32.mak @@ -55,9 +55,9 @@ ALL_DOCS= unittest : make -fdmd-win32.mak lib MAKE_LIB="unittest" - dmd -unittest main ..\import\core\stdc\stdarg -defaultlib="$(DUP_TARGET)" -debuglib="$(DUP_TARGET)" + dmd -unittest unittest ..\import\core\stdc\stdarg -defaultlib="$(DUP_TARGET)" -debuglib="$(DUP_TARGET)" $(RM) stdarg.obj - main + unittest release : make -fdmd-win32.mak lib MAKE_LIB="release" @@ -120,7 +120,7 @@ clean : cd ..\.. $(RM) $(LIB_MASK) $(RM) $(DUP_MASK) - $(RM) main.exe main.obj main.map + $(RM) unittest.exe unittest.obj unittest.map install : cd $(DIR_CC) diff --git a/src/gc/basic/posix.mak b/src/gc/basic/posix.mak index adf9942..0021e9c 100644 --- a/src/gc/basic/posix.mak +++ b/src/gc/basic/posix.mak @@ -27,11 +27,11 @@ CFLAGS_DEBUG=-g $(ADD_CFLAGS) CFLAGS=$(CFLAGS_RELEASE) DFLAGS_RELEASE=-release -O -inline -w -nofloat $(ADD_DFLAGS) -DFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +DFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) DFLAGS=$(DFLAGS_RELEASE) TFLAGS_RELEASE=-O -inline -w -nofloat $(ADD_DFLAGS) -TFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +TFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) TFLAGS=$(TFLAGS_RELEASE) DOCFLAGS=-version=DDoc diff --git a/src/gc/basic/win32.mak b/src/gc/basic/win32.mak index ac81683..8bbc490 100644 --- a/src/gc/basic/win32.mak +++ b/src/gc/basic/win32.mak @@ -23,15 +23,15 @@ ADD_CFLAGS= ADD_DFLAGS= CFLAGS_RELEASE=-mn -6 -r $(ADD_CFLAGS) -CFLAGS_DEBUG=-D -g -mn -6 -r $(ADD_CFLAGS) +CFLAGS_DEBUG=-g -mn -6 -r $(ADD_CFLAGS) CFLAGS=$(CFLAGS_RELEASE) DFLAGS_RELEASE=-release -O -inline -w -nofloat $(ADD_DFLAGS) -DFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +DFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) DFLAGS=$(DFLAGS_RELEASE) TFLAGS_RELEASE=-O -inline -w -nofloat $(ADD_DFLAGS) -TFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +TFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) TFLAGS=$(TFLAGS_RELEASE) DOCFLAGS=-version=DDoc diff --git a/src/gc/stub/posix.mak b/src/gc/stub/posix.mak index 48681e3..0e1f3d1 100644 --- a/src/gc/stub/posix.mak +++ b/src/gc/stub/posix.mak @@ -27,11 +27,11 @@ CFLAGS_DEBUG=-g $(ADD_CFLAGS) CFLAGS=$(CFLAGS_RELEASE) DFLAGS_RELEASE=-release -O -inline -w -nofloat $(ADD_DFLAGS) -DFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +DFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) DFLAGS=$(DFLAGS_RELEASE) TFLAGS_RELEASE=-O -inline -w -nofloat $(ADD_DFLAGS) -TFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +TFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) TFLAGS=$(TFLAGS_RELEASE) DOCFLAGS=-version=DDoc diff --git a/src/gc/stub/win32.mak b/src/gc/stub/win32.mak index e55472e..b412be4 100644 --- a/src/gc/stub/win32.mak +++ b/src/gc/stub/win32.mak @@ -23,15 +23,15 @@ ADD_CFLAGS= ADD_DFLAGS= CFLAGS_RELEASE=-mn -6 -r $(ADD_CFLAGS) -CFLAGS_DEBUG=-D -g -mn -6 -r $(ADD_CFLAGS) +CFLAGS_DEBUG=-g -mn -6 -r $(ADD_CFLAGS) CFLAGS=$(CFLAGS_RELEASE) DFLAGS_RELEASE=-release -O -inline -w -nofloat $(ADD_DFLAGS) -DFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +DFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) DFLAGS=$(DFLAGS_RELEASE) TFLAGS_RELEASE=-O -inline -w -nofloat $(ADD_DFLAGS) -TFLAGS_DEBUG=-debug -g -w -nofloat $(ADD_DFLAGS) +TFLAGS_DEBUG=-g -w -nofloat $(ADD_DFLAGS) TFLAGS=$(TFLAGS_RELEASE) DOCFLAGS=-version=DDoc