Skip to content

Commit

Permalink
don't make warnings into errors yet
Browse files Browse the repository at this point in the history
  • Loading branch information
franziskuskiefer committed Oct 12, 2023
1 parent d4c0bfd commit c5eec2c
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions sys/hacl/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,20 +165,21 @@ fn compile_files(
let vale_prefix = home_path.join("c").join("vale").join("src");

let mut build = cc::Build::new();
build
.files(
files
.iter()
.map(|fname| {
if fname == "hacl.c" {
home_path.join("c").join("config").join(fname)
} else {
src_prefix.join(fname)
}
})
.chain(vale_files.iter().map(|fname| vale_prefix.join(fname))),
)
.warnings_into_errors(true);
build.files(
files
.iter()
.map(|fname| {
if fname == "hacl.c" {
home_path.join("c").join("config").join(fname)
} else {
src_prefix.join(fname)
}
})
.chain(vale_files.iter().map(|fname| vale_prefix.join(fname))),
);
// TODO: enable this when all warnings are gone
// Windows: fstar_uint128_msvc.h(220): warning C4554: '>>': check operator precedence for possible error; use parentheses to clarify precedence
// .warnings_into_errors(true);

for include in includes(platform, home_path, "") {
build.include(include);
Expand Down

0 comments on commit c5eec2c

Please sign in to comment.