Skip to content

Commit 66532cf

Browse files
authored
[SYCL][LIT] Fix value of sycl_use_libcxx LIT variable (#19598)
The CMake value used for this LIT variable is just a normal boolean CMake variable set by the main LLVM CMake infrastructure, not an option that uses `ON` or `OFF`, and the lit python code expects all variables values to be option values, so just make the value of this variable match option values. --------- Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 139ffa9 commit 66532cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test/lit.site.cfg.py.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ config.test_include_path = "@TEST_INCLUDE_PATH@"
2626
config.llvm_enable_projects = "@LLVM_ENABLE_PROJECTS@"
2727

2828
config.sycl_threads_lib = '@SYCL_THREADS_LIB@'
29-
config.sycl_use_libcxx = '@LLVM_LIBCXX_USED@'
29+
config.sycl_use_libcxx = 'ON' if bool('@LLVM_LIBCXX_USED@') else 'OFF'
3030
config.extra_environment = lit_config.params.get("extra_environment", "@LIT_EXTRA_ENVIRONMENT@")
3131
config.cuda = '@SYCL_BUILD_BACKEND_CUDA@'
3232
config.hip = '@SYCL_BUILD_BACKEND_HIP@'

0 commit comments

Comments
 (0)