diff --git a/Cargo.lock b/Cargo.lock index 3defe50..e5dd17a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -138,7 +138,7 @@ checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" [[package]] name = "epitls-pi" -version = "1.3.0" +version = "1.3.1" dependencies = [ "chrono", "clap", diff --git a/README.md b/README.md index cf07bd7..24cac95 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ ## Description -A little helper tool meant to ease the developpment of the C piscine at EPITA/Toulouse. +A little helper tool meant to ease the developpment of the C piscine at +EPITA/Toulouse. ## Usage @@ -28,3 +29,9 @@ SUBCOMMANDS: - through the AUR, as `epitls-pi-bin` - with cargo `cargo install epitls-pi` + +## TODO + +- [ ] add support and switch on run/test for strict mode. +- [ ] add `--` syntax to run subcommand for parameter piping. +- [ ] prevent double includes. diff --git a/src/main.rs b/src/main.rs index 9fd8ba0..2f296f7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,6 +89,8 @@ fn compilation_args() -> Vec { "-Wall".to_string(), "-Wextra".to_string(), "-std=c99".to_string(), + "-g".to_string(), + "-fsanitize=address".to_string(), // "-pedantic".to_string(), ]; if Config::get_local_or_default().strict_mode() { diff --git a/src/tasks.rs b/src/tasks.rs index 86be5a4..e818472 100644 --- a/src/tasks.rs +++ b/src/tasks.rs @@ -93,7 +93,8 @@ impl RunTask { } pub fn run(self) -> Result<(), ExitStatus> { - let mut command = Command::new(self.file); + let mut command = Command::new("sh"); + command.args(["-c", self.file.to_str().unwrap()]); if self.verbose { log_command_run(&command); log_separator_top();