Skip to content

Commit

Permalink
Make the check-spirv target work for projects embedding clspv
Browse files Browse the repository at this point in the history
Projects that embed clspv and relocate the clspv binary in the build
output couldn't use the check-spirv target as clspv wasn't where
lit.py expected to find it.

Use a generator expression so the path is correct in all cases.

Signed-off-by: Kévin Petit <[email protected]>
  • Loading branch information
kpet committed Oct 24, 2018
1 parent 24272b6 commit fd0cbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ add_custom_target(check-spirv
COMMAND ${LLVM_SOURCE_DIR}/utils/lit/lit.py --verbose ${CMAKE_CURRENT_BINARY_DIR}
--path ${LLVM_BINARY_DIR}/bin
--path ${SPIRV_TOOLS_BINARY_DIR}/
--path ${CLSPV_BINARY_DIR}/bin
--path "$<TARGET_FILE_DIR:clspv>"
DEPENDS clspv spirv-as spirv-dis spirv-val spirv-opt FileCheck not
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)

0 comments on commit fd0cbae

Please sign in to comment.