mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-10-27 14:09:54 +00:00
disable werror (#191)
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
1 parent
ba7310fdff
commit
9fb24b607d
2 files changed
+4
-11
No files matched your search
@@ -40,17 +40,9 @@ pub const SHARED_BUILD_OPTS_NOT_MUSL: [&str; 4] = [
|
||||
|
||||
/// The shared build options to treat warnings as errors.
|
||||
///
|
||||
/// Disabled on Windows due to the following upstream issue with MSYS2 with mingw-w64:
|
||||
/// ProgramTest.cpp:23:15: error: '__p__environ' redeclared without 'dllimport' attribute
|
||||
pub fn shared_build_opts_werror(target_env: TargetEnv) -> Vec<String> {
|
||||
vec![format!(
|
||||
"-DLLVM_ENABLE_WERROR='{}'",
|
||||
if cfg!(target_os = "windows") || target_env == TargetEnv::Emscripten {
|
||||
"Off"
|
||||
} else {
|
||||
"On"
|
||||
},
|
||||
)]
|
||||
/// Disabled because it makes the build very brittle.
|
||||
pub fn shared_build_opts_werror(_target_env: TargetEnv) -> Vec<String> {
|
||||
vec!["-DLLVM_ENABLE_WERROR='Off'".to_string()]
|
||||
}
|
||||
|
||||
/// The build options to set the default target.
|
||||
|
||||
Reference in new issue
Block a user