From f4f6ea9eedda8372c50df953ad9676ae81e03921 Mon Sep 17 00:00:00 2001 From: mellow-hype <25216562+mellow-hype@users.noreply.github.com> Date: Sat, 11 Nov 2023 01:21:25 -0800 Subject: [PATCH 1/2] fix warnings: global re-export --- bindings/rust/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs index 0480f107..3b3c62a9 100644 --- a/bindings/rust/src/lib.rs +++ b/bindings/rust/src/lib.rs @@ -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 { From 483638ab22a048f0a6ee217708a970b81ebca3ab Mon Sep 17 00:00:00 2001 From: mellow-hype <25216562+mellow-hype@users.noreply.github.com> Date: Sat, 11 Nov 2023 01:23:07 -0800 Subject: [PATCH 2/2] use the same unicorn build output dir in Makefile and bindings/rust/build.rs --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6ebb458b..42e9a325 100644 --- a/Makefile +++ b/Makefile @@ -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