aboutsummaryrefslogtreecommitdiff
path: root/third-party
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2023-08-29 15:57:24 -0700
committerDavid Tolnay <dtolnay@gmail.com>2023-08-29 16:15:21 -0700
commita040f3cdd48ebf4333a0b3d84df8196da3e237f5 (patch)
treedab97ee580a8f6b6ef465e3d1bc3518ec93ef8aa /third-party
parent1cf0af5ffa9cb1a8fb5e97fc29984022bbb2744e (diff)
downloadcxx-a040f3cdd48ebf4333a0b3d84df8196da3e237f5.tar.gz
Re-buckify with winapi-x86_64-pc-windows-gnu dependency
https://github.com/facebookincubator/reindeer/commit/f5fcc27a69d73883240ff0b262ccfffeafea5dec
Diffstat (limited to 'third-party')
-rw-r--r--third-party/BUCK22
-rw-r--r--third-party/fixups/winapi-x86_64-pc-windows-gnu/fixups.toml1
2 files changed, 23 insertions, 0 deletions
diff --git a/third-party/BUCK b/third-party/BUCK
index 1208987e..26832b39 100644
--- a/third-party/BUCK
+++ b/third-party/BUCK
@@ -487,6 +487,11 @@ cargo.rust_library(
"winerror",
"winnt",
],
+ platform = {
+ "windows-gnu": dict(
+ deps = [":winapi-x86_64-pc-windows-gnu-0.4.0"],
+ ),
+ },
rustc_flags = ["@$(location :winapi-0.3.9-build-script-run[rustc_flags])"],
visibility = [],
)
@@ -555,3 +560,20 @@ cargo.rust_library(
},
visibility = [],
)
+
+http_archive(
+ name = "winapi-x86_64-pc-windows-gnu-0.4.0.crate",
+ sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f",
+ strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0",
+ urls = ["https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download"],
+ visibility = [],
+)
+
+cargo.rust_library(
+ name = "winapi-x86_64-pc-windows-gnu-0.4.0",
+ srcs = [":winapi-x86_64-pc-windows-gnu-0.4.0.crate"],
+ crate = "winapi_x86_64_pc_windows_gnu",
+ crate_root = "winapi-x86_64-pc-windows-gnu-0.4.0.crate/src/lib.rs",
+ edition = "2015",
+ visibility = [],
+)
diff --git a/third-party/fixups/winapi-x86_64-pc-windows-gnu/fixups.toml b/third-party/fixups/winapi-x86_64-pc-windows-gnu/fixups.toml
new file mode 100644
index 00000000..db40d72c
--- /dev/null
+++ b/third-party/fixups/winapi-x86_64-pc-windows-gnu/fixups.toml
@@ -0,0 +1 @@
+buildscript = []