Skip to content

Commit ebea021

Browse files
authored
exclude ntzwapi from build
1 parent 7129c6f commit ebea021

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/build.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ mod regen {
104104
regex::escape(env!("CARGO_MANIFEST_DIR"))
105105
))
106106
.unwrap();
107+
108+
let blocklist_ty_regexpr = Regex::new(&format!(
109+
r"({}\\deps\\phnt-nightly\\ntzwapi.h)",
110+
regex::escape(env!("CARGO_MANIFEST_DIR"))
111+
))
112+
.unwrap();
113+
107114

108115
let blocklist_regexpr =
109116
Regex::new(&format!(r"({})", self.blocklist_types.join("|"))).unwrap();
@@ -150,7 +157,8 @@ mod regen {
150157
.raw_line(raw_lines.join("\r\n").as_str())
151158
.clang_args(clang_args)
152159
.allowlist_file(allowlist_regexpr.as_str())
153-
.blocklist_type(blocklist_regexpr.as_str())
160+
.blocklist_file(blocklist_regexpr.as_str())
161+
.blocklist_type(blocklist_ty_regexpr.as_str())
154162
.type_alias("NTSTATUS")
155163
.opaque_type("std::.*")
156164
.use_core()

0 commit comments

Comments
 (0)