more TODOs and prefix println's with repo name

Signed-off-by: strawberry <june@girlboss.ceo>
This commit is contained in:
strawberry 2023-11-12 16:57:14 -05:00
parent 2a8abbdef5
commit 3f517c73c8
2 changed files with 9 additions and 6 deletions

View file

@ -7,4 +7,7 @@ the sys repo, rust wrapper
- [ ] add support for explicit make config args on top of choosing variant
- [ ] make build script better overall
- [ ] support C preprocessor macro definitions
- [ ] 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

View file

@ -6,7 +6,7 @@ fn update_submodules() {
let dir = "../";
let args = ["submodule", "update", "--init", "--recursive"];
println!(
"Running command: \"{} {}\" in directory: {}",
"[hardened_malloc-sys]: Running command: \"{} {}\" in directory: {}",
program,
args.join(" "),
dir
@ -15,9 +15,9 @@ fn update_submodules() {
match ret.map(|status| (status.success(), status.code())) {
Ok((true, _)) => (),
Ok((false, Some(c))) => panic!("Command failed with error code {}", c),
Ok((false, None)) => panic!("Command exited with no error code, possibly killed by system"),
Err(e) => panic!("Command failed with error: {}", e),
Ok((false, Some(c))) => panic!("[hardened_malloc-sys]: Command failed with error code {}", c),
Ok((false, None)) => panic!("[hardened_malloc-sys]: Command exited with no error code, possibly killed by system"),
Err(e) => panic!("[hardened_malloc-sys]: Command failed with error: {}", e),
}
}
@ -46,7 +46,7 @@ fn main() {
});
if !make_output.status.success() {
panic!(
"building hardened_malloc failed:\n{:?}\n{}\n{}",
"[hardened_malloc-sys]: building hardened_malloc failed:\n{:?}\n{}\n{}",
make_command,
String::from_utf8_lossy(&make_output.stdout),
String::from_utf8_lossy(&make_output.stderr)