@@ -54,7 +54,7 @@ def do_configure(args, passthrough_args):
5454 sycl_build_pi_hip_platform = "AMD"
5555 sycl_clang_extra_flags = ""
5656 sycl_werror = "OFF"
57- llvm_enable_assertions = "ON "
57+ llvm_enable_assertions = "OFF "
5858 llvm_enable_doxygen = "OFF"
5959 llvm_enable_sphinx = "OFF"
6060 llvm_build_shared_libs = "OFF"
@@ -122,8 +122,8 @@ def do_configure(args, passthrough_args):
122122 sycl_werror = "ON"
123123 xpti_enable_werror = "ON"
124124
125- if args .no_assertions :
126- llvm_enable_assertions = "OFF "
125+ if args .enable_assertions :
126+ llvm_enable_assertions = "ON "
127127
128128 if args .docs :
129129 llvm_enable_sphinx = "ON"
@@ -357,7 +357,7 @@ def main():
357357 help = "build compiler with all supported targets, it doesn't change runtime build" ,
358358 )
359359 parser .add_argument (
360- "--no -assertions" , action = "store_true" , help = "build without assertions"
360+ "--enable -assertions" , action = "store_true" , help = "Build with assertions. "
361361 )
362362 parser .add_argument (
363363 "--docs" , action = "store_true" , help = "build Doxygen documentation"
0 commit comments