Skip to content

Commit aa12f9d

Browse files
authored
[SYCL] Capitalize SYCL_BUILD_PI_HIP_PLATFORM matching buildbot's output (#5032)
A follow up to #4163 (comment) `buildbot` script only allows `NVIDIA` capitalise the variable in case user spelled it differently.
1 parent d8761fd commit aa12f9d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sycl/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ option(SYCL_INCLUDE_TESTS
243243
"Generate build targets for the SYCL unit tests."
244244
${LLVM_INCLUDE_TESTS})
245245

246+
# Ensure that HIP platform is uppercase, to match buildbot's output.
247+
if(NOT "${SYCL_BUILD_PI_HIP_PLATFORM}" STREQUAL "")
248+
string(TOUPPER ${SYCL_BUILD_PI_HIP_PLATFORM} SYCL_BUILD_PI_HIP_PLATFORM)
249+
endif()
250+
246251
# Plugin Library
247252
add_subdirectory( plugins )
248253

0 commit comments

Comments
 (0)