Skip to content

Commit

Permalink
Added windows-kernel flag
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-al committed Jun 9, 2024
1 parent 7d4f95e commit 6b5b77f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ formatter = ["alloc", "full-decoder"]
encoder = ["alloc", "full-decoder"]
serialization = ["serde", "bitflags/serde"]
nolibc = []
windows-kernel = []

[[example]]
name = "pattern"
Expand Down
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ fn build_library() {

println!("cargo:rustc-link-lib=static=Zydis");
println!("cargo:rustc-link-lib=static=Zycore");

if cfg!(feature = "windows-kernel") {
println!("cargo:rustc-link-lib=BufferOverflowK");
}
}

fn main() {
Expand Down

0 comments on commit 6b5b77f

Please sign in to comment.