From d4a3661b1e4e29ca7d305bd93a791d499a5f93f8 Mon Sep 17 00:00:00 2001 From: Alexander Batashev Date: Fri, 25 Mar 2022 14:09:33 +0300 Subject: [PATCH 1/2] [CI] Disable -Werror by default --- buildbot/configure.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/buildbot/configure.py b/buildbot/configure.py index 283ffbd5dd91b..ceb7f4c1bfa16 100644 --- a/buildbot/configure.py +++ b/buildbot/configure.py @@ -36,7 +36,7 @@ def do_configure(args): sycl_build_pi_hip = 'OFF' sycl_build_pi_hip_platform = 'AMD' sycl_clang_extra_flags = '' - sycl_werror = 'ON' + sycl_werror = 'OFF' llvm_enable_assertions = 'ON' llvm_enable_doxygen = 'OFF' llvm_enable_sphinx = 'OFF' @@ -44,7 +44,7 @@ def do_configure(args): llvm_enable_lld = 'OFF' sycl_enable_xpti_tracing = 'ON' - xpti_enable_werror = 'ON' + xpti_enable_werror = 'OFF' # replace not append, so ARM ^ X86 if args.arm: @@ -77,9 +77,9 @@ def do_configure(args): sycl_build_pi_hip_platform = args.hip_platform sycl_build_pi_hip = 'ON' - if args.no_werror: - sycl_werror = 'OFF' - xpti_enable_werror = 'OFF' + if args.werror || args.ci_defaults: + sycl_werror = 'ON' + xpti_enable_werror = 'ON' if args.no_assertions: llvm_enable_assertions = 'OFF' @@ -213,7 +213,7 @@ def main(): parser.add_argument("--enable-esimd-emulator", action='store_true', help="build with ESIMD emulation support") parser.add_argument("--no-assertions", action='store_true', help="build without assertions") parser.add_argument("--docs", action='store_true', help="build Doxygen documentation") - parser.add_argument("--no-werror", action='store_true', help="Don't treat warnings as errors") + parser.add_argument("--werror", action='store_true', help="Don't treat warnings as errors") parser.add_argument("--shared-libs", action='store_true', help="Build shared libraries") parser.add_argument("--cmake-opt", action='append', help="Additional CMake option not configured via script parameters") parser.add_argument("--cmake-gen", default="Ninja", help="CMake generator") From 2b36391816367a2c2db256805d29f13d088d6ddd Mon Sep 17 00:00:00 2001 From: Alexander Batashev Date: Fri, 25 Mar 2022 16:07:03 +0300 Subject: [PATCH 2/2] Update buildbot/configure.py Co-authored-by: Alexey Bader --- buildbot/configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildbot/configure.py b/buildbot/configure.py index ceb7f4c1bfa16..c33e3553a9fff 100644 --- a/buildbot/configure.py +++ b/buildbot/configure.py @@ -77,7 +77,7 @@ def do_configure(args): sycl_build_pi_hip_platform = args.hip_platform sycl_build_pi_hip = 'ON' - if args.werror || args.ci_defaults: + if args.werror or args.ci_defaults: sycl_werror = 'ON' xpti_enable_werror = 'ON'