[DeviceRTL] Fix a CMake multi-step compilation dependency issue.

caused by 9223315903
This commit is contained in:
Ye Luo 2022-10-06 19:05:14 -05:00
parent 4aa87a131f
commit deba92d6c2
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ function(compileDeviceRTLLibrary target_cpu target_name target_triple)
endif()
if("${EXTRACT_TOOL}" STREQUAL "$<TARGET_FILE:llvm-extract>")
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/extracted_${bclib_name}
DEPENDS opt
DEPENDS llvm-extract
APPEND)
endif()
if("${PACKAGER_TOOL}" STREQUAL "$<TARGET_FILE:clang-offload-packager>")