gemini-code-assist[bot] commented on code in PR #114:
URL: https://github.com/apache/tvm-ffi/pull/114#discussion_r2427965875
##########
rust/tvm-ffi-sys/build.rs:
##########
@@ -61,6 +61,7 @@ fn main() {
println!("cargo:rustc-link-search=native={}", lib_dir);
// link the library
println!("cargo:rustc-link-lib=dylib=tvm_ffi");
+ println!("cargo:rustc-link-lib=dylib=tvm_ffi_testing");
Review Comment:
To run `cargo test` with a specific feature enabled, you need to use the
`--features` flag. For example, if you've defined a feature named `testing` in
your `Cargo.toml`, you would run your tests like this:
```bash
cargo test --features testing
```
This command tells Cargo to compile and run the tests with the `testing`
feature activated, which would then enable the conditional linking of
`libtvm_ffi_testing.so` in your `build.rs` file.
If you are still encountering issues, could you please provide the exact
error message or unexpected behavior you are observing when running `cargo
test`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]