You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[comgr] fix detecting SPIR-V include path for LLVMSPIRVLib.h in comgr
- Improve SPIR-V support detection in comgr by searching for LLVMSPIRVLib.h
in three candidate locations:
1. ${LLVM_INCLUDE_DIRS}/LLVMSPIRVLib (standalone builds)
2. ${LLVM_EXTERNAL_SPIRV_LLVM_TRANSLATOR_SOURCE_DIR}/include (external project builds)
3. ${CMAKE_SOURCE_DIR}/projects/SPIRV-LLVM-Translator/include (default llvm-spirv location)
- Use the first valid path found to enable SPIR-V support and add the
appropriate include directory to amd_comgr.
- If the header is not found in any of the candidate locations, disable SPIR-V
support as before.
- This change improves build robustness for various repo and CMake configurations,
including standalone and external project builds.
0 commit comments