chore: make implicit function declarations a compile-time error

This commit is contained in:
Amaan Qureshi 2023-07-20 06:52:11 -04:00
parent 25cb8c7dac
commit cf418a286e

View file

@ -370,7 +370,8 @@ impl Loader {
.opt_level(2)
.cargo_metadata(false)
.target(BUILD_TARGET)
.host(BUILD_TARGET);
.host(BUILD_TARGET)
.flag_if_supported("-Werror=implicit-function-declaration");
let compiler = config.get_compiler();
let mut command = Command::new(compiler.path());
for (key, value) in compiler.env() {