Skip to content

Commit acddc8b

Browse files
committed
[buildbot] use Werror as default again
Signed-off-by: hiaselhans <[email protected]>
1 parent 7aeb2d4 commit acddc8b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/linux_post_commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
mkdir -p $GITHUB_WORKSPACE/build
3636
cd $GITHUB_WORKSPACE/build
3737
python3 $GITHUB_WORKSPACE/src/buildbot/configure.py -w $GITHUB_WORKSPACE \
38-
-s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build -t Release --werror $ARGS
38+
-s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build -t Release $ARGS
3939
- name: Compile
4040
run: |
4141
python3 $GITHUB_WORKSPACE/src/buildbot/compile.py -w $GITHUB_WORKSPACE \

buildbot/configure.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def do_configure(args):
2626
llvm_enable_projects = 'clang;llvm-spirv;sycl;opencl-aot;xpti;libdevice'
2727
libclc_targets_to_build = ''
2828
sycl_build_pi_cuda = 'OFF'
29-
sycl_werror = 'OFF'
29+
sycl_werror = 'ON'
3030
llvm_enable_assertions = 'ON'
3131
llvm_enable_doxygen = 'OFF'
3232
llvm_enable_sphinx = 'OFF'
@@ -43,8 +43,8 @@ def do_configure(args):
4343
libclc_targets_to_build = 'nvptx64--;nvptx64--nvidiacl'
4444
sycl_build_pi_cuda = 'ON'
4545

46-
if args.werror:
47-
sycl_werror = 'ON'
46+
if args.no_werror:
47+
sycl_werror = 'OFF'
4848

4949
if args.assertions:
5050
llvm_enable_assertions = 'ON'
@@ -125,7 +125,7 @@ def main():
125125
parser.add_argument("--assertions", action='store_true', help="build with assertions")
126126
parser.add_argument("--docs", action='store_true', help="build Doxygen documentation")
127127
parser.add_argument("--system-ocl", action='store_true', help="use OpenCL deps from system (no download)")
128-
parser.add_argument("--werror", action='store_true', help="Treat warnings as errors")
128+
parser.add_argument("--no-werror", action='store_true', help="Don't treat warnings as errors")
129129
parser.add_argument("--shared-libs", action='store_true', help="Build shared libraries")
130130
parser.add_argument("--cmake-opt", action='append', help="Additional CMake option not configured via script parameters")
131131

sycl/doc/GetStartedGuide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ python %DPCPP_HOME%\llvm\buildbot\compile.py -s %DPCPP_HOME%\llvm -o %DPCPP_HOME
9494
You can use the following flags with `configure.py`:
9595

9696
* `--system-ocl` -> Don't Download OpenCL deps via cmake but use the system ones
97+
* `--no-werror` -> Don't treat warnings as errors when compiling llvm
9798
* `--cuda` -> use the cuda backend (see [Nvidia CUDA](#build-dpc-toolchain-with-support-for-nvidia-cuda))
9899
* `--shared-libs` -> Build shared libraries
99100
* `-t` -> Build type (debug or release)

0 commit comments

Comments
 (0)