Skip to content

Commit

Permalink
599: Use dynamic lib for the rust bundle activator
Browse files Browse the repository at this point in the history
  • Loading branch information
pnoltes committed Aug 1, 2023
1 parent a0c2ca3 commit 5d8f5bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions misc/experimental/rust/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if (CELIX_RUST_EXPERIMENTAL)
FetchContent_MakeAvailable(Corrosion)

corrosion_import_crate(MANIFEST_PATH Cargo.toml)
corrosion_add_target_local_rustflags(rust_bundle_activator "-Cprefer-dynamic")

#Note corrosion_import_crate import creates a rust_bundle_activator CMake target, but this is a INTERFACE target.
#Using the INTERFACE_LINK_LIBRARIES property we can get the actual target.
Expand Down

0 comments on commit 5d8f5bb

Please sign in to comment.