File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,20 +125,15 @@ fn build_with_cmake() {
125125 config. define ( "UNICORN_LOGGING" , "ON" ) ;
126126 }
127127
128- // need to clear build target and append "build" to the path because
129- // unicorn's CMakeLists.txt doesn't properly support 'install', so we use
130- // the build artifacts from the build directory, which cmake crate sets
131- // to "<out_dir>/build/"
132128 let dst = config
133129 . define ( "UNICORN_BUILD_TESTS" , "OFF" )
134- . define ( "UNICORN_INSTALL" , "OFF " )
130+ . define ( "UNICORN_INSTALL" , "ON " )
135131 . define ( "UNICORN_ARCH" , archs)
136- . no_build_target ( true )
137132 . build ( ) ;
138133
139134 println ! (
140135 "cargo:rustc-link-search=native={}" ,
141- dst. join( "build " ) . display( )
136+ dst. join( "lib " ) . display( )
142137 ) ;
143138
144139 // Lazymio(@wtdcode): Dynamic link may break. See: https://github.com/rust-lang/cargo/issues/5077
You can’t perform that action at this time.
0 commit comments