Skip to content

Commit da6a73c

Browse files
committed
debug: check clang and oneapi match outputs
1 parent 04a9f04 commit da6a73c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libsyclinterface/cmake/modules/FindIntelSyclCompiler.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,14 @@ if(${clangxx_result} MATCHES "0")
102102
# Match 'clang version xx.x.x'
103103
string(REGEX MATCH "^.*clang version [0-9]+\\.[0-9]+\\.[0-9]+.*$" _clang_match "${X}")
104104
if(_clang_match)
105+
message(STATUS "_clang_match: ${_clang_match}")
105106
string(REGEX REPLACE "^.*clang version ([0-9]+\\.[0-9]+\\.[0-9]+).*$" "\\1" IntelSyclCompiler_VERSION "${_clang_match}")
106107
endif()
107108

108109
# Match 'Intel(R) oneAPI DPC++/C++ Compiler xxxx.x.x (...)'
109110
string(REGEX MATCH "^.*Intel\\(R\\) oneAPI DPC\\+\\+\\/C\\+\\+ Compiler [0-9]+\\.[0-9]+\\.[0-9]+.*$" _oneapi_match "${X}")
110111
if(_oneapi_match)
112+
message(STATUS "_oneapi_match: ${_oneapi_match}")
111113
string(REGEX REPLACE "^.*Intel\\(R\\) oneAPI DPC\\+\\+\\/C\\+\\+ Compiler ([0-9]+\\.[0-9]+\\.[0-9]+).*$" "\\1" IntelSyclCompiler_VERSION "${_oneapi_match}")
112114
endif()
113115
endif()

0 commit comments

Comments
 (0)