Skip to content

Commit

Permalink
Create an out_dir instead of OUT_DIR = .
Browse files Browse the repository at this point in the history
Summary: These targets were relying on the fact that `include!()` accepts relative paths. In a cargo environment however, https://doc.rust-lang.org/cargo/reference/environment-variables.html, `OUT_DIR` will point to an abspath where build scripts write to. We can achieve the same thing in practice with a filegroup.

Reviewed By: dtolnay

Differential Revision: D63335477

fbshipit-source-id: fe9cbbf14d05e714806e457de094f27a989160b0
  • Loading branch information
capickett authored and facebook-github-bot committed Sep 27, 2024
1 parent d04f713 commit 86731d7
Show file tree
Hide file tree
Showing 3 changed files with 3,600 additions and 4 deletions.
5 changes: 5 additions & 0 deletions shim/third-party/rust/fixups/libsqlite3-sys/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
filegroup(
name = "out_dir",
srcs = ["bindgen.rs"],
visibility = ["//third-party/rust/..."],
)
Loading

0 comments on commit 86731d7

Please sign in to comment.