Fossil SCM

When compiling with Mingw(-w64), check for (older) MSVC compatibility.

jan.nijtmans 2017-03-22 15:56 trunk
Commit 4080860da51ef7849416af44682fdeb2b219869a79178a706d83bf6f9ca1c56e
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -728,11 +728,11 @@
728728
# run on the target platform. This is usually the almost the same
729729
# as BCC, unless you are cross-compiling. This C compiler builds
730730
# the finished binary for fossil. The BCC compiler above is used
731731
# for building intermediate code-generator tools.
732732
#
733
-TCC = $(PREFIX)$(TCCEXE) -Wall
733
+TCC = $(PREFIX)$(TCCEXE) -Wall -Wdeclaration-after-statement
734734
735735
#### Add the necessary command line options to build with debugging
736736
# symbols, if enabled.
737737
#
738738
ifdef FOSSIL_ENABLE_SYMBOLS
739739
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -728,11 +728,11 @@
728 # run on the target platform. This is usually the almost the same
729 # as BCC, unless you are cross-compiling. This C compiler builds
730 # the finished binary for fossil. The BCC compiler above is used
731 # for building intermediate code-generator tools.
732 #
733 TCC = $(PREFIX)$(TCCEXE) -Wall
734
735 #### Add the necessary command line options to build with debugging
736 # symbols, if enabled.
737 #
738 ifdef FOSSIL_ENABLE_SYMBOLS
739
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -728,11 +728,11 @@
728 # run on the target platform. This is usually the almost the same
729 # as BCC, unless you are cross-compiling. This C compiler builds
730 # the finished binary for fossil. The BCC compiler above is used
731 # for building intermediate code-generator tools.
732 #
733 TCC = $(PREFIX)$(TCCEXE) -Wall -Wdeclaration-after-statement
734
735 #### Add the necessary command line options to build with debugging
736 # symbols, if enabled.
737 #
738 ifdef FOSSIL_ENABLE_SYMBOLS
739
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -225,11 +225,11 @@
225225
# run on the target platform. This is usually the almost the same
226226
# as BCC, unless you are cross-compiling. This C compiler builds
227227
# the finished binary for fossil. The BCC compiler above is used
228228
# for building intermediate code-generator tools.
229229
#
230
-TCC = $(PREFIX)$(TCCEXE) -Wall
230
+TCC = $(PREFIX)$(TCCEXE) -Wall -Wdeclaration-after-statement
231231
232232
#### Add the necessary command line options to build with debugging
233233
# symbols, if enabled.
234234
#
235235
ifdef FOSSIL_ENABLE_SYMBOLS
236236
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -225,11 +225,11 @@
225 # run on the target platform. This is usually the almost the same
226 # as BCC, unless you are cross-compiling. This C compiler builds
227 # the finished binary for fossil. The BCC compiler above is used
228 # for building intermediate code-generator tools.
229 #
230 TCC = $(PREFIX)$(TCCEXE) -Wall
231
232 #### Add the necessary command line options to build with debugging
233 # symbols, if enabled.
234 #
235 ifdef FOSSIL_ENABLE_SYMBOLS
236
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -225,11 +225,11 @@
225 # run on the target platform. This is usually the almost the same
226 # as BCC, unless you are cross-compiling. This C compiler builds
227 # the finished binary for fossil. The BCC compiler above is used
228 # for building intermediate code-generator tools.
229 #
230 TCC = $(PREFIX)$(TCCEXE) -Wall -Wdeclaration-after-statement
231
232 #### Add the necessary command line options to build with debugging
233 # symbols, if enabled.
234 #
235 ifdef FOSSIL_ENABLE_SYMBOLS
236
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -225,11 +225,11 @@
225225
# run on the target platform. This is usually the almost the same
226226
# as BCC, unless you are cross-compiling. This C compiler builds
227227
# the finished binary for fossil. The BCC compiler above is used
228228
# for building intermediate code-generator tools.
229229
#
230
-TCC = $(PREFIX)$(TCCEXE) -Wall
230
+TCC = $(PREFIX)$(TCCEXE) -Wall -Wdeclaration-after-statement
231231
232232
#### Add the necessary command line options to build with debugging
233233
# symbols, if enabled.
234234
#
235235
ifdef FOSSIL_ENABLE_SYMBOLS
236236
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -225,11 +225,11 @@
225 # run on the target platform. This is usually the almost the same
226 # as BCC, unless you are cross-compiling. This C compiler builds
227 # the finished binary for fossil. The BCC compiler above is used
228 # for building intermediate code-generator tools.
229 #
230 TCC = $(PREFIX)$(TCCEXE) -Wall
231
232 #### Add the necessary command line options to build with debugging
233 # symbols, if enabled.
234 #
235 ifdef FOSSIL_ENABLE_SYMBOLS
236
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -225,11 +225,11 @@
225 # run on the target platform. This is usually the almost the same
226 # as BCC, unless you are cross-compiling. This C compiler builds
227 # the finished binary for fossil. The BCC compiler above is used
228 # for building intermediate code-generator tools.
229 #
230 TCC = $(PREFIX)$(TCCEXE) -Wall -Wdeclaration-after-statement
231
232 #### Add the necessary command line options to build with debugging
233 # symbols, if enabled.
234 #
235 ifdef FOSSIL_ENABLE_SYMBOLS
236

Keyboard Shortcuts

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