Skip to content

Commit 6b5b77f

Browse files
committed
Added windows-kernel flag
1 parent 7d4f95e commit 6b5b77f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ formatter = ["alloc", "full-decoder"]
3030
encoder = ["alloc", "full-decoder"]
3131
serialization = ["serde", "bitflags/serde"]
3232
nolibc = []
33+
windows-kernel = []
3334

3435
[[example]]
3536
name = "pattern"

build.rs

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ fn build_library() {
5555

5656
println!("cargo:rustc-link-lib=static=Zydis");
5757
println!("cargo:rustc-link-lib=static=Zycore");
58+
59+
if cfg!(feature = "windows-kernel") {
60+
println!("cargo:rustc-link-lib=BufferOverflowK");
61+
}
5862
}
5963

6064
fn main() {

0 commit comments

Comments
 (0)