Skip to content

Commit 996f7f3

Browse files
committed
Fix the case when additional cmake options are not provided.
Signed-off-by: Alexey Bader <[email protected]>
1 parent 297fb45 commit 996f7f3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

buildbot/configure.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,17 @@ def do_configure(args):
7676
"-DLLVM_ENABLE_SPHINX={}".format(llvm_enable_sphinx),
7777
"-DBUILD_SHARED_LIBS={}".format(llvm_build_shared_libs),
7878
"-DSYCL_ENABLE_XPTI_TRACING=ON" # Explicitly turn on XPTI tracing
79-
] + args.cmake_opt
80-
79+
]
8180

8281
if not args.no_ocl:
8382
cmake_cmd.extend([
8483
"-DOpenCL_INCLUDE_DIR={}".format(ocl_header_dir),
8584
"-DOpenCL_LIBRARY={}".format(icd_loader_lib)])
8685

86+
# Add additional CMake options if provided
87+
if args.cmake_opt:
88+
cmake_cmd += args.cmake_opt
89+
8790
# Add path to root CMakeLists.txt
8891
cmake_cmd.append(llvm_dir)
8992

0 commit comments

Comments
 (0)