forked from M-Labs/nac3
1
0
Fork 0

core: IRRT -Werror=return-type

This commit is contained in:
lyken 2024-07-10 10:17:43 +08:00
parent 1e06a3d199
commit bc91ab9b13
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@ fn compile_irrt(irrt_dir: &Path, out_dir: &Path) {
"-S", "-S",
"-Wall", "-Wall",
"-Wextra", "-Wextra",
"-Werror=return-type",
"-I", "-I",
irrt_dir.to_str().unwrap(), irrt_dir.to_str().unwrap(),
"-o", "-o",
@ -96,6 +97,7 @@ fn compile_irrt_test(irrt_dir: &Path, out_dir: &Path) {
"-O0", "-O0",
"-Wall", "-Wall",
"-Wextra", "-Wextra",
"-Werror=return-type",
"-lm", // for `tgamma()`, `lgamma()` "-lm", // for `tgamma()`, `lgamma()`
"-o", "-o",
exe_path.to_str().unwrap(), exe_path.to_str().unwrap(),