mirror of
https://github.com/serai-dex/serai.git
synced 2025-02-02 03:06:31 +00:00
Correct the placement of the wrapper rebuild in the build script
This commit is contained in:
parent
a37a21f891
commit
b10b531311
1 changed files with 15 additions and 15 deletions
|
@ -63,22 +63,22 @@ fn main() {
|
||||||
panic!("Failed to cp {}", lib);
|
panic!("Failed to cp {}", lib);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
println!("cargo:rerun-if-changed=c/wrapper.c");
|
println!("cargo:rerun-if-changed=c/wrapper.c");
|
||||||
if !Command::new("g++").args(&[
|
if !Command::new("g++").args(&[
|
||||||
"-O3", "-Wall", "-shared", "-std=c++14", "-fPIC",
|
"-O3", "-Wall", "-shared", "-std=c++14", "-fPIC",
|
||||||
"-Imonero/contrib/epee/include", "-Imonero/src",
|
"-Imonero/contrib/epee/include", "-Imonero/src",
|
||||||
"wrapper.c", "-o", &format!(
|
"wrapper.c", "-o", &format!(
|
||||||
"{}/{}wrapper.{}",
|
"{}/{}wrapper.{}",
|
||||||
out_dir,
|
out_dir,
|
||||||
&env::consts::DLL_PREFIX,
|
&env::consts::DLL_PREFIX,
|
||||||
&env::consts::DLL_EXTENSION
|
&env::consts::DLL_EXTENSION
|
||||||
),
|
),
|
||||||
&format!("-L{}", out_dir),
|
&format!("-L{}", out_dir),
|
||||||
"-ldevice", "-lringct_basic", "-lringct"
|
"-ldevice", "-lringct_basic", "-lringct"
|
||||||
]).current_dir(&Path::new("c")).status().unwrap().success() {
|
]).current_dir(&Path::new("c")).status().unwrap().success() {
|
||||||
panic!("g++ failed to build the wrapper");
|
panic!("g++ failed to build the wrapper");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("cargo:rustc-link-search={}", out_dir);
|
println!("cargo:rustc-link-search={}", out_dir);
|
||||||
|
|
Loading…
Reference in a new issue