@@ -26,7 +26,7 @@ def do_configure(args):
26
26
llvm_enable_projects = 'clang;llvm-spirv;sycl;opencl-aot;xpti;libdevice'
27
27
libclc_targets_to_build = ''
28
28
sycl_build_pi_cuda = 'OFF'
29
- sycl_werror = 'OFF '
29
+ sycl_werror = 'ON '
30
30
llvm_enable_assertions = 'ON'
31
31
llvm_enable_doxygen = 'OFF'
32
32
llvm_enable_sphinx = 'OFF'
@@ -43,8 +43,8 @@ def do_configure(args):
43
43
libclc_targets_to_build = 'nvptx64--;nvptx64--nvidiacl'
44
44
sycl_build_pi_cuda = 'ON'
45
45
46
- if args .werror :
47
- sycl_werror = 'ON '
46
+ if args .no_werror :
47
+ sycl_werror = 'OFF '
48
48
49
49
if args .assertions :
50
50
llvm_enable_assertions = 'ON'
@@ -125,7 +125,7 @@ def main():
125
125
parser .add_argument ("--assertions" , action = 'store_true' , help = "build with assertions" )
126
126
parser .add_argument ("--docs" , action = 'store_true' , help = "build Doxygen documentation" )
127
127
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" )
129
129
parser .add_argument ("--shared-libs" , action = 'store_true' , help = "Build shared libraries" )
130
130
parser .add_argument ("--cmake-opt" , action = 'append' , help = "Additional CMake option not configured via script parameters" )
131
131
0 commit comments