Skip to content

[CI] Disable -Werror by default #5889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions buildbot/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ 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'
llvm_build_shared_libs = 'OFF'
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:
Expand Down Expand Up @@ -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 or args.ci_defaults:
sycl_werror = 'ON'
xpti_enable_werror = 'ON'

if args.no_assertions:
llvm_enable_assertions = 'OFF'
Expand Down Expand Up @@ -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")
Expand Down