Fossil SCM

Disable optimizations when debugging with mingw

baruch 2015-08-26 14:09 trunk
Commit e5bbc1bf161fc4e96b279a586f606da582670d0a
1 file changed +9 -7
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -648,23 +648,25 @@
648648
# will run on the target platform. This is usually the same
649649
# as BCC, unless you are cross-compiling. This C compiler builds
650650
# the finished binary for fossil. The BCC compiler above is used
651651
# for building intermediate code-generator tools.
652652
#
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
660654
661655
#### Add the necessary command line options to build with debugging
662656
# symbols, if enabled.
663657
#
664658
ifdef FOSSIL_ENABLE_SYMBOLS
665659
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)
666668
endif
667669
668670
#### Compile resources for use in building executables that will run
669671
# on the target platform.
670672
#
671673
--- 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

Keyboard Shortcuts

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