Fossil SCM
For the MinGW build, enable compiling with debugging symbols if FOSSIL_ENABLE_SYMBOLS is set.
Commit
0e082b041426c61833b65193c43fec694e14f825
Parent
fc5a217602a97cd…
3 files changed
+11
+12
-1
+12
-1
+11
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -364,10 +364,14 @@ | ||
| 364 | 364 | # will run on the platform that is doing the build. This is used |
| 365 | 365 | # to compile code-generator programs as part of the build process. |
| 366 | 366 | # See TCC below for the C compiler for building the finished binary. |
| 367 | 367 | # |
| 368 | 368 | BCC = gcc |
| 369 | + | |
| 370 | +#### Enable compiling with debug symbols (much larger binary) | |
| 371 | +# | |
| 372 | +# FOSSIL_ENABLE_SYMBOLS = 1 | |
| 369 | 373 | |
| 370 | 374 | #### Enable JSON (http://www.json.org) support using "cson" |
| 371 | 375 | # |
| 372 | 376 | # FOSSIL_ENABLE_JSON = 1 |
| 373 | 377 | |
| @@ -442,10 +446,17 @@ | ||
| 442 | 446 | # as BCC, unless you are cross-compiling. This C compiler builds |
| 443 | 447 | # the finished binary for fossil. The BCC compiler above is used |
| 444 | 448 | # for building intermediate code-generator tools. |
| 445 | 449 | # |
| 446 | 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 | |
| 447 | 458 | |
| 448 | 459 | #### Compile resources for use in building executables that will run |
| 449 | 460 | # on the target platform. |
| 450 | 461 | # |
| 451 | 462 | RCC = $(PREFIX)windres -I$(SRCDIR) -I$(ZINCDIR) |
| 452 | 463 |
| --- 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 |
+12
-1
| --- win/Makefile.mingw | ||
| +++ win/Makefile.mingw | ||
| @@ -35,10 +35,14 @@ | ||
| 35 | 35 | # will run on the platform that is doing the build. This is used |
| 36 | 36 | # to compile code-generator programs as part of the build process. |
| 37 | 37 | # See TCC below for the C compiler for building the finished binary. |
| 38 | 38 | # |
| 39 | 39 | BCC = gcc |
| 40 | + | |
| 41 | +#### Enable compiling with debug symbols (much larger binary) | |
| 42 | +# | |
| 43 | +# FOSSIL_ENABLE_SYMBOLS = 1 | |
| 40 | 44 | |
| 41 | 45 | #### Enable JSON (http://www.json.org) support using "cson" |
| 42 | 46 | # |
| 43 | 47 | # FOSSIL_ENABLE_JSON = 1 |
| 44 | 48 | |
| @@ -112,11 +116,18 @@ | ||
| 112 | 116 | # will run on the target platform. This is usually the same |
| 113 | 117 | # as BCC, unless you are cross-compiling. This C compiler builds |
| 114 | 118 | # the finished binary for fossil. The BCC compiler above is used |
| 115 | 119 | # for building intermediate code-generator tools. |
| 116 | 120 | # |
| 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 | |
| 118 | 129 | |
| 119 | 130 | #### Compile resources for use in building executables that will run |
| 120 | 131 | # on the target platform. |
| 121 | 132 | # |
| 122 | 133 | RCC = $(PREFIX)windres -I$(SRCDIR) -I$(ZINCDIR) |
| 123 | 134 |
| --- 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 |
+12
-1
| --- win/Makefile.mingw.mistachkin | ||
| +++ win/Makefile.mingw.mistachkin | ||
| @@ -35,10 +35,14 @@ | ||
| 35 | 35 | # will run on the platform that is doing the build. This is used |
| 36 | 36 | # to compile code-generator programs as part of the build process. |
| 37 | 37 | # See TCC below for the C compiler for building the finished binary. |
| 38 | 38 | # |
| 39 | 39 | BCC = gcc |
| 40 | + | |
| 41 | +#### Enable compiling with debug symbols (much larger binary) | |
| 42 | +# | |
| 43 | +# FOSSIL_ENABLE_SYMBOLS = 1 | |
| 40 | 44 | |
| 41 | 45 | #### Enable JSON (http://www.json.org) support using "cson" |
| 42 | 46 | # |
| 43 | 47 | FOSSIL_ENABLE_JSON = 1 |
| 44 | 48 | |
| @@ -112,11 +116,18 @@ | ||
| 112 | 116 | # will run on the target platform. This is usually the same |
| 113 | 117 | # as BCC, unless you are cross-compiling. This C compiler builds |
| 114 | 118 | # the finished binary for fossil. The BCC compiler above is used |
| 115 | 119 | # for building intermediate code-generator tools. |
| 116 | 120 | # |
| 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 | |
| 118 | 129 | |
| 119 | 130 | #### Compile resources for use in building executables that will run |
| 120 | 131 | # on the target platform. |
| 121 | 132 | # |
| 122 | 133 | RCC = $(PREFIX)windres -I$(SRCDIR) -I$(ZINCDIR) |
| 123 | 134 |
| --- 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 |