Fossil SCM
Disable optimizations when debugging with mingw
Commit
e5bbc1bf161fc4e96b279a586f606da582670d0a
Parent
1b6f257c3dd51af…
1 file changed
+9
-7
+9
-7
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -648,23 +648,25 @@ | ||
| 648 | 648 | # will run on the target platform. This is usually the same |
| 649 | 649 | # as BCC, unless you are cross-compiling. This C compiler builds |
| 650 | 650 | # the finished binary for fossil. The BCC compiler above is used |
| 651 | 651 | # for building intermediate code-generator tools. |
| 652 | 652 | # |
| 653 | -TCC = $(PREFIX)gcc -Os -Wall | |
| 654 | - | |
| 655 | -#### When not using the miniz compression library, zlib is required. | |
| 656 | -# | |
| 657 | -ifndef FOSSIL_ENABLE_MINIZ | |
| 658 | -TCC += -L$(ZLIBDIR) -I$(ZINCDIR) | |
| 659 | -endif | |
| 653 | +TCC = $(PREFIX)gcc -Wall | |
| 660 | 654 | |
| 661 | 655 | #### Add the necessary command line options to build with debugging |
| 662 | 656 | # symbols, if enabled. |
| 663 | 657 | # |
| 664 | 658 | ifdef FOSSIL_ENABLE_SYMBOLS |
| 665 | 659 | TCC += -g |
| 660 | +else | |
| 661 | +TCC += -Os | |
| 662 | +endif | |
| 663 | + | |
| 664 | +#### When not using the miniz compression library, zlib is required. | |
| 665 | +# | |
| 666 | +ifndef FOSSIL_ENABLE_MINIZ | |
| 667 | +TCC += -L$(ZLIBDIR) -I$(ZINCDIR) | |
| 666 | 668 | endif |
| 667 | 669 | |
| 668 | 670 | #### Compile resources for use in building executables that will run |
| 669 | 671 | # on the target platform. |
| 670 | 672 | # |
| 671 | 673 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -648,23 +648,25 @@ | |
| 648 | # will run on the target platform. This is usually the same |
| 649 | # as BCC, unless you are cross-compiling. This C compiler builds |
| 650 | # the finished binary for fossil. The BCC compiler above is used |
| 651 | # for building intermediate code-generator tools. |
| 652 | # |
| 653 | TCC = $(PREFIX)gcc -Os -Wall |
| 654 | |
| 655 | #### When not using the miniz compression library, zlib is required. |
| 656 | # |
| 657 | ifndef FOSSIL_ENABLE_MINIZ |
| 658 | TCC += -L$(ZLIBDIR) -I$(ZINCDIR) |
| 659 | endif |
| 660 | |
| 661 | #### Add the necessary command line options to build with debugging |
| 662 | # symbols, if enabled. |
| 663 | # |
| 664 | ifdef FOSSIL_ENABLE_SYMBOLS |
| 665 | TCC += -g |
| 666 | endif |
| 667 | |
| 668 | #### Compile resources for use in building executables that will run |
| 669 | # on the target platform. |
| 670 | # |
| 671 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -648,23 +648,25 @@ | |
| 648 | # will run on the target platform. This is usually the same |
| 649 | # as BCC, unless you are cross-compiling. This C compiler builds |
| 650 | # the finished binary for fossil. The BCC compiler above is used |
| 651 | # for building intermediate code-generator tools. |
| 652 | # |
| 653 | TCC = $(PREFIX)gcc -Wall |
| 654 | |
| 655 | #### Add the necessary command line options to build with debugging |
| 656 | # symbols, if enabled. |
| 657 | # |
| 658 | ifdef FOSSIL_ENABLE_SYMBOLS |
| 659 | TCC += -g |
| 660 | else |
| 661 | TCC += -Os |
| 662 | endif |
| 663 | |
| 664 | #### When not using the miniz compression library, zlib is required. |
| 665 | # |
| 666 | ifndef FOSSIL_ENABLE_MINIZ |
| 667 | TCC += -L$(ZLIBDIR) -I$(ZINCDIR) |
| 668 | endif |
| 669 | |
| 670 | #### Compile resources for use in building executables that will run |
| 671 | # on the target platform. |
| 672 | # |
| 673 |