Skip to content

Commit

Permalink
Fix: Unicorn build paths in top-level Makefile and Rust bindings' bui…
Browse files Browse the repository at this point in the history
…ld.rs (#23)

* fix warnings: global re-export

* use the same unicorn build output dir in Makefile and bindings/rust/build.rs
  • Loading branch information
mellow-hype authored Nov 20, 2023
1 parent f607118 commit 63aab0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ build:

unicorn/build/libunicorn-common.a:
git submodule update --init --recursive
cmake -S unicorn/ -B unicorn/build -D BUILD_SHARED_LIBS=no
$(MAKE) -C ./unicorn/build -j8
cmake -S unicorn/ -B build/unicorn -D BUILD_SHARED_LIBS=no
$(MAKE) -C ./build/unicorn -j8

build/libunicornafl: build unicorn/build/libunicorn-common.a
cd ./build && cmake .. -D BUILD_SHARED_LIBS=no
Expand Down
1 change: 0 additions & 1 deletion bindings/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ use alloc::{boxed::Box, rc::Rc, vec::Vec};
use core::{cell::UnsafeCell, ptr};
use ffi::uc_handle;
use libc::c_void;
use unicorn_const::{uc_error, Arch, HookType, MemRegion, MemType, Mode, Permission, Query};

#[derive(Debug)]
pub struct Context {
Expand Down

0 comments on commit 63aab0f

Please sign in to comment.