added fsanitize params
This commit is contained in:
parent
c71feec15f
commit
6a242e1e84
4 changed files with 13 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -138,7 +138,7 @@ checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "epitls-pi"
|
name = "epitls-pi"
|
||||||
version = "1.3.0"
|
version = "1.3.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"clap",
|
"clap",
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
## Description
|
## 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
|
## Usage
|
||||||
|
|
||||||
|
@ -28,3 +29,9 @@ SUBCOMMANDS:
|
||||||
|
|
||||||
- through the AUR, as `epitls-pi-bin`
|
- through the AUR, as `epitls-pi-bin`
|
||||||
- with cargo `cargo install epitls-pi`
|
- 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.
|
||||||
|
|
|
@ -89,6 +89,8 @@ fn compilation_args() -> Vec<String> {
|
||||||
"-Wall".to_string(),
|
"-Wall".to_string(),
|
||||||
"-Wextra".to_string(),
|
"-Wextra".to_string(),
|
||||||
"-std=c99".to_string(),
|
"-std=c99".to_string(),
|
||||||
|
"-g".to_string(),
|
||||||
|
"-fsanitize=address".to_string(),
|
||||||
// "-pedantic".to_string(),
|
// "-pedantic".to_string(),
|
||||||
];
|
];
|
||||||
if Config::get_local_or_default().strict_mode() {
|
if Config::get_local_or_default().strict_mode() {
|
||||||
|
|
|
@ -93,7 +93,8 @@ impl RunTask {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn run(self) -> Result<(), ExitStatus> {
|
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 {
|
if self.verbose {
|
||||||
log_command_run(&command);
|
log_command_run(&command);
|
||||||
log_separator_top();
|
log_separator_top();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue