From 9fb24b607dd9a31a7d153b60a5f019ac7a0bec1a Mon Sep 17 00:00:00 2001 From: xermicus Date: Tue, 4 Feb 2025 12:43:56 +0100 Subject: [PATCH] disable werror (#191) Signed-off-by: Cyrill Leutwiler --- CHANGELOG.md | 1 + crates/llvm-builder/src/platforms/shared.rs | 14 +++----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0aba1d..a8401ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ This is a development pre-release. - Solidity: Add the solc `--libraries` files to sources. - A data race in tests. - Fix `broken pipe` errors. +- llvm-builder: Allow warnings. ## v0.1.0-dev.9 diff --git a/crates/llvm-builder/src/platforms/shared.rs b/crates/llvm-builder/src/platforms/shared.rs index 71e2e03..7585a31 100644 --- a/crates/llvm-builder/src/platforms/shared.rs +++ b/crates/llvm-builder/src/platforms/shared.rs @@ -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 { - 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 { + vec!["-DLLVM_ENABLE_WERROR='Off'".to_string()] } /// The build options to set the default target.