mirror of
https://github.com/girlbossceo/hardened_malloc-rs.git
synced 2025-04-29 14:19:25 -04:00
more TODOs and prefix println's with repo name
Signed-off-by: strawberry <june@girlboss.ceo>
This commit is contained in:
parent
2a8abbdef5
commit
3f517c73c8
2 changed files with 9 additions and 6 deletions
|
@ -7,4 +7,7 @@ the sys repo, rust wrapper
|
||||||
- [ ] add support for explicit make config args on top of choosing variant
|
- [ ] add support for explicit make config args on top of choosing variant
|
||||||
- [ ] make build script better overall
|
- [ ] make build script better overall
|
||||||
- [ ] support C preprocessor macro definitions
|
- [ ] support C preprocessor macro definitions
|
||||||
- [ ] add support for hardened_malloc's tests and our own tests
|
- [ ] potentially add support for cross-compiling so i can build on apple silicon for linux x86?
|
||||||
|
- [ ] add support for hardened_malloc's tests and our own tests
|
||||||
|
- [ ] add github CI/CD
|
||||||
|
- [ ] mirror to other places
|
10
build.rs
10
build.rs
|
@ -6,7 +6,7 @@ fn update_submodules() {
|
||||||
let dir = "../";
|
let dir = "../";
|
||||||
let args = ["submodule", "update", "--init", "--recursive"];
|
let args = ["submodule", "update", "--init", "--recursive"];
|
||||||
println!(
|
println!(
|
||||||
"Running command: \"{} {}\" in directory: {}",
|
"[hardened_malloc-sys]: Running command: \"{} {}\" in directory: {}",
|
||||||
program,
|
program,
|
||||||
args.join(" "),
|
args.join(" "),
|
||||||
dir
|
dir
|
||||||
|
@ -15,9 +15,9 @@ fn update_submodules() {
|
||||||
|
|
||||||
match ret.map(|status| (status.success(), status.code())) {
|
match ret.map(|status| (status.success(), status.code())) {
|
||||||
Ok((true, _)) => (),
|
Ok((true, _)) => (),
|
||||||
Ok((false, Some(c))) => panic!("Command failed with error code {}", c),
|
Ok((false, Some(c))) => panic!("[hardened_malloc-sys]: Command failed with error code {}", c),
|
||||||
Ok((false, None)) => panic!("Command exited with no error code, possibly killed by system"),
|
Ok((false, None)) => panic!("[hardened_malloc-sys]: Command exited with no error code, possibly killed by system"),
|
||||||
Err(e) => panic!("Command failed with error: {}", e),
|
Err(e) => panic!("[hardened_malloc-sys]: Command failed with error: {}", e),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ fn main() {
|
||||||
});
|
});
|
||||||
if !make_output.status.success() {
|
if !make_output.status.success() {
|
||||||
panic!(
|
panic!(
|
||||||
"building hardened_malloc failed:\n{:?}\n{}\n{}",
|
"[hardened_malloc-sys]: building hardened_malloc failed:\n{:?}\n{}\n{}",
|
||||||
make_command,
|
make_command,
|
||||||
String::from_utf8_lossy(&make_output.stdout),
|
String::from_utf8_lossy(&make_output.stdout),
|
||||||
String::from_utf8_lossy(&make_output.stderr)
|
String::from_utf8_lossy(&make_output.stderr)
|
||||||
|
|
Loading…
Add table
Reference in a new issue