Skip to content

Commit 41a1b12

Browse files
author
Sidney Keese
committed
generate header also into target_path
1 parent 29ac282 commit 41a1b12

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

filecoin-proofs/.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
**/*.rs.bk
33
Cargo.lock
44
.criterion
5-
**/libproofs.h
6-
heaptrack*
5+
heaptrack*

filecoin-proofs/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fn main() {
2727
// but rather just tell the rest of the system we can't proceed.
2828
match c {
2929
Ok(res) => {
30-
res.write_to_file("libfilecoin_proofs.h");
30+
res.write_to_file(target_path.join("libfilecoin_proofs.h"));
3131
}
3232
Err(err) => {
3333
eprintln!("unable to generate bindings: {:?}", err);
@@ -36,7 +36,7 @@ fn main() {
3636
}
3737

3838
let b = bindgen::builder()
39-
.header("libfilecoin_proofs.h")
39+
.header(target_path.join("libfilecoin_proofs.h").to_string_lossy())
4040
// Here, we tell Rust to link libfilecoin_proofs so that auto-generated
4141
// symbols are linked to symbols in the compiled dylib. For reasons
4242
// unbeknown to me, the link attribute needs to precede an extern block.

scripts/publish-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mkdir $RELEASE_PATH/include
2626
mkdir -p $RELEASE_PATH/lib/pkgconfig
2727

2828
cp target/release/paramcache $RELEASE_PATH/bin/
29-
cp filecoin-proofs/libfilecoin_proofs.h $RELEASE_PATH/include/
29+
cp target/release/libfilecoin_proofs.h $RELEASE_PATH/include/
3030
cp target/release/libfilecoin_proofs.a $RELEASE_PATH/lib/
3131
cp target/release/libfilecoin_proofs.pc $RELEASE_PATH/lib/pkgconfig
3232

0 commit comments

Comments
 (0)