Fossil SCM

For the MinGW build, enable compiling with debugging symbols if FOSSIL_ENABLE_SYMBOLS is set.

mistachkin 2012-11-22 10:46 trunk
Commit 0e082b041426c61833b65193c43fec694e14f825
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -364,10 +364,14 @@
364364
# will run on the platform that is doing the build. This is used
365365
# to compile code-generator programs as part of the build process.
366366
# See TCC below for the C compiler for building the finished binary.
367367
#
368368
BCC = gcc
369
+
370
+#### Enable compiling with debug symbols (much larger binary)
371
+#
372
+# FOSSIL_ENABLE_SYMBOLS = 1
369373
370374
#### Enable JSON (http://www.json.org) support using "cson"
371375
#
372376
# FOSSIL_ENABLE_JSON = 1
373377
@@ -442,10 +446,17 @@
442446
# as BCC, unless you are cross-compiling. This C compiler builds
443447
# the finished binary for fossil. The BCC compiler above is used
444448
# for building intermediate code-generator tools.
445449
#
446450
TCC = $(PREFIX)gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
451
+
452
+#### Add the necessary command line options to build with debugging
453
+# symbols, if enabled.
454
+#
455
+ifdef FOSSIL_ENABLE_SYMBOLS
456
+TCC += -g
457
+endif
447458
448459
#### Compile resources for use in building executables that will run
449460
# on the target platform.
450461
#
451462
RCC = $(PREFIX)windres -I$(SRCDIR) -I$(ZINCDIR)
452463
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -364,10 +364,14 @@
364 # will run on the platform that is doing the build. This is used
365 # to compile code-generator programs as part of the build process.
366 # See TCC below for the C compiler for building the finished binary.
367 #
368 BCC = gcc
 
 
 
 
369
370 #### Enable JSON (http://www.json.org) support using "cson"
371 #
372 # FOSSIL_ENABLE_JSON = 1
373
@@ -442,10 +446,17 @@
442 # as BCC, unless you are cross-compiling. This C compiler builds
443 # the finished binary for fossil. The BCC compiler above is used
444 # for building intermediate code-generator tools.
445 #
446 TCC = $(PREFIX)gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
 
 
 
 
 
 
 
447
448 #### Compile resources for use in building executables that will run
449 # on the target platform.
450 #
451 RCC = $(PREFIX)windres -I$(SRCDIR) -I$(ZINCDIR)
452
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -364,10 +364,14 @@
364 # will run on the platform that is doing the build. This is used
365 # to compile code-generator programs as part of the build process.
366 # See TCC below for the C compiler for building the finished binary.
367 #
368 BCC = gcc
369
370 #### Enable compiling with debug symbols (much larger binary)
371 #
372 # FOSSIL_ENABLE_SYMBOLS = 1
373
374 #### Enable JSON (http://www.json.org) support using "cson"
375 #
376 # FOSSIL_ENABLE_JSON = 1
377
@@ -442,10 +446,17 @@
446 # as BCC, unless you are cross-compiling. This C compiler builds
447 # the finished binary for fossil. The BCC compiler above is used
448 # for building intermediate code-generator tools.
449 #
450 TCC = $(PREFIX)gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
451
452 #### Add the necessary command line options to build with debugging
453 # symbols, if enabled.
454 #
455 ifdef FOSSIL_ENABLE_SYMBOLS
456 TCC += -g
457 endif
458
459 #### Compile resources for use in building executables that will run
460 # on the target platform.
461 #
462 RCC = $(PREFIX)windres -I$(SRCDIR) -I$(ZINCDIR)
463
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -35,10 +35,14 @@
3535
# will run on the platform that is doing the build. This is used
3636
# to compile code-generator programs as part of the build process.
3737
# See TCC below for the C compiler for building the finished binary.
3838
#
3939
BCC = gcc
40
+
41
+#### Enable compiling with debug symbols (much larger binary)
42
+#
43
+# FOSSIL_ENABLE_SYMBOLS = 1
4044
4145
#### Enable JSON (http://www.json.org) support using "cson"
4246
#
4347
# FOSSIL_ENABLE_JSON = 1
4448
@@ -112,11 +116,18 @@
112116
# will run on the target platform. This is usually the same
113117
# as BCC, unless you are cross-compiling. This C compiler builds
114118
# the finished binary for fossil. The BCC compiler above is used
115119
# for building intermediate code-generator tools.
116120
#
117
-TCC = $(PREFIX)gcc -g -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
121
+TCC = $(PREFIX)gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
122
+
123
+#### Add the necessary command line options to build with debugging
124
+# symbols, if enabled.
125
+#
126
+ifdef FOSSIL_ENABLE_SYMBOLS
127
+TCC += -g
128
+endif
118129
119130
#### Compile resources for use in building executables that will run
120131
# on the target platform.
121132
#
122133
RCC = $(PREFIX)windres -I$(SRCDIR) -I$(ZINCDIR)
123134
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -35,10 +35,14 @@
35 # will run on the platform that is doing the build. This is used
36 # to compile code-generator programs as part of the build process.
37 # See TCC below for the C compiler for building the finished binary.
38 #
39 BCC = gcc
 
 
 
 
40
41 #### Enable JSON (http://www.json.org) support using "cson"
42 #
43 # FOSSIL_ENABLE_JSON = 1
44
@@ -112,11 +116,18 @@
112 # will run on the target platform. This is usually the same
113 # as BCC, unless you are cross-compiling. This C compiler builds
114 # the finished binary for fossil. The BCC compiler above is used
115 # for building intermediate code-generator tools.
116 #
117 TCC = $(PREFIX)gcc -g -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
 
 
 
 
 
 
 
118
119 #### Compile resources for use in building executables that will run
120 # on the target platform.
121 #
122 RCC = $(PREFIX)windres -I$(SRCDIR) -I$(ZINCDIR)
123
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -35,10 +35,14 @@
35 # will run on the platform that is doing the build. This is used
36 # to compile code-generator programs as part of the build process.
37 # See TCC below for the C compiler for building the finished binary.
38 #
39 BCC = gcc
40
41 #### Enable compiling with debug symbols (much larger binary)
42 #
43 # FOSSIL_ENABLE_SYMBOLS = 1
44
45 #### Enable JSON (http://www.json.org) support using "cson"
46 #
47 # FOSSIL_ENABLE_JSON = 1
48
@@ -112,11 +116,18 @@
116 # will run on the target platform. This is usually the same
117 # as BCC, unless you are cross-compiling. This C compiler builds
118 # the finished binary for fossil. The BCC compiler above is used
119 # for building intermediate code-generator tools.
120 #
121 TCC = $(PREFIX)gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
122
123 #### Add the necessary command line options to build with debugging
124 # symbols, if enabled.
125 #
126 ifdef FOSSIL_ENABLE_SYMBOLS
127 TCC += -g
128 endif
129
130 #### Compile resources for use in building executables that will run
131 # on the target platform.
132 #
133 RCC = $(PREFIX)windres -I$(SRCDIR) -I$(ZINCDIR)
134
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -35,10 +35,14 @@
3535
# will run on the platform that is doing the build. This is used
3636
# to compile code-generator programs as part of the build process.
3737
# See TCC below for the C compiler for building the finished binary.
3838
#
3939
BCC = gcc
40
+
41
+#### Enable compiling with debug symbols (much larger binary)
42
+#
43
+# FOSSIL_ENABLE_SYMBOLS = 1
4044
4145
#### Enable JSON (http://www.json.org) support using "cson"
4246
#
4347
FOSSIL_ENABLE_JSON = 1
4448
@@ -112,11 +116,18 @@
112116
# will run on the target platform. This is usually the same
113117
# as BCC, unless you are cross-compiling. This C compiler builds
114118
# the finished binary for fossil. The BCC compiler above is used
115119
# for building intermediate code-generator tools.
116120
#
117
-TCC = $(PREFIX)gcc -g -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
121
+TCC = $(PREFIX)gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
122
+
123
+#### Add the necessary command line options to build with debugging
124
+# symbols, if enabled.
125
+#
126
+ifdef FOSSIL_ENABLE_SYMBOLS
127
+TCC += -g
128
+endif
118129
119130
#### Compile resources for use in building executables that will run
120131
# on the target platform.
121132
#
122133
RCC = $(PREFIX)windres -I$(SRCDIR) -I$(ZINCDIR)
123134
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -35,10 +35,14 @@
35 # will run on the platform that is doing the build. This is used
36 # to compile code-generator programs as part of the build process.
37 # See TCC below for the C compiler for building the finished binary.
38 #
39 BCC = gcc
 
 
 
 
40
41 #### Enable JSON (http://www.json.org) support using "cson"
42 #
43 FOSSIL_ENABLE_JSON = 1
44
@@ -112,11 +116,18 @@
112 # will run on the target platform. This is usually the same
113 # as BCC, unless you are cross-compiling. This C compiler builds
114 # the finished binary for fossil. The BCC compiler above is used
115 # for building intermediate code-generator tools.
116 #
117 TCC = $(PREFIX)gcc -g -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
 
 
 
 
 
 
 
118
119 #### Compile resources for use in building executables that will run
120 # on the target platform.
121 #
122 RCC = $(PREFIX)windres -I$(SRCDIR) -I$(ZINCDIR)
123
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -35,10 +35,14 @@
35 # will run on the platform that is doing the build. This is used
36 # to compile code-generator programs as part of the build process.
37 # See TCC below for the C compiler for building the finished binary.
38 #
39 BCC = gcc
40
41 #### Enable compiling with debug symbols (much larger binary)
42 #
43 # FOSSIL_ENABLE_SYMBOLS = 1
44
45 #### Enable JSON (http://www.json.org) support using "cson"
46 #
47 FOSSIL_ENABLE_JSON = 1
48
@@ -112,11 +116,18 @@
116 # will run on the target platform. This is usually the same
117 # as BCC, unless you are cross-compiling. This C compiler builds
118 # the finished binary for fossil. The BCC compiler above is used
119 # for building intermediate code-generator tools.
120 #
121 TCC = $(PREFIX)gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
122
123 #### Add the necessary command line options to build with debugging
124 # symbols, if enabled.
125 #
126 ifdef FOSSIL_ENABLE_SYMBOLS
127 TCC += -g
128 endif
129
130 #### Compile resources for use in building executables that will run
131 # on the target platform.
132 #
133 RCC = $(PREFIX)windres -I$(SRCDIR) -I$(ZINCDIR)
134

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button