Skip to content

Commit 7bcaa35

Browse files
committed
Fix CMake parallel build: ensure C++ libs built before Rust FFI
1 parent 619e2d9 commit 7bcaa35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ if(SPIRV_ENABLE_RUST_TARGET_ENV)
173173
)
174174

175175
add_custom_target(spirv-tools-ffi-rust ALL DEPENDS ${SPIRV_RUST_LIB_PATH})
176+
# The Rust FFI crate links against C++ libraries, so ensure they're built first
177+
add_dependencies(spirv-tools-ffi-rust ${SPIRV_TOOLS} SPIRV-Tools-opt SPIRV-Tools-reduce)
176178

177179
add_library(spirv-tools-ffi STATIC IMPORTED GLOBAL)
178180
add_dependencies(spirv-tools-ffi spirv-tools-ffi-rust)

0 commit comments

Comments
 (0)