Skip to content

Commit

Permalink
feat: rust c ffi
Browse files Browse the repository at this point in the history
  • Loading branch information
daheige committed Apr 28, 2024
1 parent 6ce9bcf commit 3c68463
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion part8/cc-demo/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ fn main() {
format!("\"{}\"", env!("CARGO_PKG_VERSION")).as_str(),
)
.define("WELCOME", None)
.file("foo.c")
.file("src/foo.c")
.compile("foo"); // // 输出 `libfoo.a`
}
File renamed without changes.

0 comments on commit 3c68463

Please sign in to comment.