Skip to content

Commit d4a3661

Browse files
author
Alexander Batashev
committed
[CI] Disable -Werror by default
1 parent c818709 commit d4a3661

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

buildbot/configure.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ def do_configure(args):
3636
sycl_build_pi_hip = 'OFF'
3737
sycl_build_pi_hip_platform = 'AMD'
3838
sycl_clang_extra_flags = ''
39-
sycl_werror = 'ON'
39+
sycl_werror = 'OFF'
4040
llvm_enable_assertions = 'ON'
4141
llvm_enable_doxygen = 'OFF'
4242
llvm_enable_sphinx = 'OFF'
4343
llvm_build_shared_libs = 'OFF'
4444
llvm_enable_lld = 'OFF'
4545

4646
sycl_enable_xpti_tracing = 'ON'
47-
xpti_enable_werror = 'ON'
47+
xpti_enable_werror = 'OFF'
4848

4949
# replace not append, so ARM ^ X86
5050
if args.arm:
@@ -77,9 +77,9 @@ def do_configure(args):
7777
sycl_build_pi_hip_platform = args.hip_platform
7878
sycl_build_pi_hip = 'ON'
7979

80-
if args.no_werror:
81-
sycl_werror = 'OFF'
82-
xpti_enable_werror = 'OFF'
80+
if args.werror || args.ci_defaults:
81+
sycl_werror = 'ON'
82+
xpti_enable_werror = 'ON'
8383

8484
if args.no_assertions:
8585
llvm_enable_assertions = 'OFF'
@@ -213,7 +213,7 @@ def main():
213213
parser.add_argument("--enable-esimd-emulator", action='store_true', help="build with ESIMD emulation support")
214214
parser.add_argument("--no-assertions", action='store_true', help="build without assertions")
215215
parser.add_argument("--docs", action='store_true', help="build Doxygen documentation")
216-
parser.add_argument("--no-werror", action='store_true', help="Don't treat warnings as errors")
216+
parser.add_argument("--werror", action='store_true', help="Don't treat warnings as errors")
217217
parser.add_argument("--shared-libs", action='store_true', help="Build shared libraries")
218218
parser.add_argument("--cmake-opt", action='append', help="Additional CMake option not configured via script parameters")
219219
parser.add_argument("--cmake-gen", default="Ninja", help="CMake generator")

0 commit comments

Comments
 (0)