Fossil SCM

For MSVC build, use /utf-8 option for CL (because some sources need it and this helps when some codepages are in effect)

larrybr 2022-03-22 11:46 trunk
Commit 0324515b5971557bb2e9df35badb482a80e09674728157736ceda0d932c2309f
--- tools/makemake.tcl
+++ tools/makemake.tcl
@@ -1630,11 +1630,11 @@
16301630
16311631
!if $(FOSSIL_ENABLE_TCL)!=0
16321632
INCL = $(INCL) /I"$(TCLINCDIR)"
16331633
!endif
16341634
1635
-CFLAGS = /nologo /W2 /WX
1635
+CFLAGS = /nologo /W2 /WX /utf-8
16361636
LDFLAGS =
16371637
16381638
CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS
16391639
CFLAGS = $(CFLAGS) /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_NONSTDC_NO_WARNINGS
16401640
16411641
--- tools/makemake.tcl
+++ tools/makemake.tcl
@@ -1630,11 +1630,11 @@
1630
1631 !if $(FOSSIL_ENABLE_TCL)!=0
1632 INCL = $(INCL) /I"$(TCLINCDIR)"
1633 !endif
1634
1635 CFLAGS = /nologo /W2 /WX
1636 LDFLAGS =
1637
1638 CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS
1639 CFLAGS = $(CFLAGS) /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_NONSTDC_NO_WARNINGS
1640
1641
--- tools/makemake.tcl
+++ tools/makemake.tcl
@@ -1630,11 +1630,11 @@
1630
1631 !if $(FOSSIL_ENABLE_TCL)!=0
1632 INCL = $(INCL) /I"$(TCLINCDIR)"
1633 !endif
1634
1635 CFLAGS = /nologo /W2 /WX /utf-8
1636 LDFLAGS =
1637
1638 CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS
1639 CFLAGS = $(CFLAGS) /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_NONSTDC_NO_WARNINGS
1640
1641
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -172,11 +172,11 @@
172172
173173
!if $(FOSSIL_ENABLE_TCL)!=0
174174
INCL = $(INCL) /I"$(TCLINCDIR)"
175175
!endif
176176
177
-CFLAGS = /nologo /W2 /WX
177
+CFLAGS = /nologo /W2 /WX /utf-8
178178
LDFLAGS =
179179
180180
CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS
181181
CFLAGS = $(CFLAGS) /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_NONSTDC_NO_WARNINGS
182182
183183
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -172,11 +172,11 @@
172
173 !if $(FOSSIL_ENABLE_TCL)!=0
174 INCL = $(INCL) /I"$(TCLINCDIR)"
175 !endif
176
177 CFLAGS = /nologo /W2 /WX
178 LDFLAGS =
179
180 CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS
181 CFLAGS = $(CFLAGS) /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_NONSTDC_NO_WARNINGS
182
183
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -172,11 +172,11 @@
172
173 !if $(FOSSIL_ENABLE_TCL)!=0
174 INCL = $(INCL) /I"$(TCLINCDIR)"
175 !endif
176
177 CFLAGS = /nologo /W2 /WX /utf-8
178 LDFLAGS =
179
180 CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS
181 CFLAGS = $(CFLAGS) /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_NONSTDC_NO_WARNINGS
182
183

Keyboard Shortcuts

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