kparzysz-quic commented on code in PR #10891:
URL: https://github.com/apache/tvm/pull/10891#discussion_r841944949
##########
cmake/modules/HexagonSDK.cmake:
##########
@@ -97,11 +132,26 @@ function(_get_hexagon_sdk_property_impl
endif()
elseif(_property STREQUAL "QAIC_EXE")
- _check_path_exists(
- "${_hexagon_sdk_root}/ipc/fastrpc/qaic/Ubuntu18/qaic"
- _qaic_path
- )
- set_parent(${_output_variable} "${_qaic_path}")
+ set(_override $ENV{QAIC_PATH_OVERRIDE})
+ if(_override)
+ set_parent(_qaic_path "${_override}")
+ else()
+ _get_ubuntu_version(_uversion)
+ _check_path_exists(
+ "${_hexagon_sdk_root}/ipc/fastrpc/qaic/${_uversion}/qaic"
+ _qaic_path
+ )
+ endif()
+ _check_path_exists("${_qaic_path}" _qaic_path_found)
+ if(NOT _qaic_path_found)
+ message(
+ SEND_ERROR
+ "The qaic executable cannot be found in '${_qaic_path}'. You can set "
+ "the environment variable QAIC_PATH_OVERRIDE to override the automatic
"
+ "search."
Review Comment:
Makes sense.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]