Skip to content

Commit 3bb22ca

Browse files
committed
build.rs: compile our C/C++ code with the -Wall flag
This results in a lot of warnings because the code is gross. Time to start fixing them, though.
1 parent 630259e commit 3bb22ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ fn main() {
153153
let mut ccfg = gcc::Config::new();
154154
let mut cppcfg = gcc::Config::new();
155155

156-
ccfg.file("tectonic/bibtex.c")
156+
ccfg
157+
.flag("-Wall")
158+
.file("tectonic/bibtex.c")
157159
.file("tectonic/core-bridge.c")
158160
.file("tectonic/dpx-agl.c")
159161
.file("tectonic/dpx-bmpimage.c")
@@ -256,6 +258,7 @@ fn main() {
256258

257259
cppcfg
258260
.cpp(true)
261+
.flag("-Wall")
259262
.file("tectonic/Engine.cpp")
260263
.file("tectonic/XeTeXFontInst.cpp")
261264
.file("tectonic/XeTeXFontMgr.cpp")

0 commit comments

Comments
 (0)