Skip to content

Commit

Permalink
Use flag -Wno-uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Apr 17, 2024
1 parent 312a673 commit a78e737
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aws-lc-sys/builder/cmake_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// SPDX-License-Identifier: Apache-2.0 OR ISC

use crate::OutputLib::{Crypto, RustWrapper, Ssl};
use crate::{target, target_arch, target_os, target_vendor, test_command, OutputLibType};
use crate::{
target, target_arch, target_env, target_os, target_vendor, test_command, OutputLibType,
};
use std::env;
use std::ffi::OsStr;
use std::path::PathBuf;
Expand Down Expand Up @@ -118,6 +120,10 @@ impl CmakeBuilder {
}
}

if target_env() != "msvc" {
cmake_cfg.cflag("-Wno-uninitialized");
}

if cfg!(feature = "asan") {
env::set_var("CC", "clang");
env::set_var("CXX", "clang++");
Expand Down

0 comments on commit a78e737

Please sign in to comment.