Copy all the needed .ll and .dll for 7_libNVVM

This commit is contained in:
shawnz
2025-02-11 17:01:43 +08:00
parent 7a9bd38ecc
commit 4fcfa82d7d
6 changed files with 61 additions and 8 deletions

View File

@@ -46,4 +46,17 @@ install(FILES dsl-gpu64.ll DESTINATION bin)
# 'dsl' will load dsl-gpu64.ll from the current working directory. That
# .ll file should be present where tests are executed (the build directory).
file(COPY dsl-gpu64.ll DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
add_custom_command(
TARGET dsl
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${CMAKE_CURRENT_SOURCE_DIR}/dsl-gpu64.ll" "$<TARGET_FILE_DIR:dsl>"
)
if (WIN32)
add_custom_command(
TARGET dsl
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${CMAKE_BINARY_DIR}/nvvm64_40_0.dll" "$<TARGET_FILE_DIR:dsl>"
)
endif ()