sdk: Use common ljd flags
Some checks failed
lint/clippy Checking for common mistakes and opportunities for code improvement
build/linux Build for the target platform: linux
build/msvc Build for the target platform: msvc

This commit is contained in:
Lucas Schwiderski 2023-10-30 14:07:00 +01:00
parent 57224622d9
commit 7080dcb8de
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8
2 changed files with 7 additions and 2 deletions

View file

@ -133,7 +133,7 @@ async fn parse_command_line_template(tmpl: &String) -> Result<CmdLine> {
if path.file_name() == Some(OsStr::new("main.py")) { if path.file_name() == Some(OsStr::new("main.py")) {
let arg = path.display().to_string(); let arg = path.display().to_string();
let mut cmd = CmdLine::new("python"); let mut cmd = CmdLine::new("python");
cmd.arg("-c").arg(shlex::quote(&arg).to_string()); cmd.arg(shlex::quote(&arg).to_string());
cmd cmd
} else { } else {
CmdLine::new(path) CmdLine::new(path)

View file

@ -81,7 +81,12 @@ where
.map(|c| c.into()) .map(|c| c.into())
.unwrap_or_else(|| Command::new("ljd")); .unwrap_or_else(|| Command::new("ljd"));
cmd.arg("-f").arg(&temp); cmd.arg("--catch_asserts")
.args(["--function_def_sugar", "false"])
.args(["--function_def_self_arg", "true"])
.args(["--unsafe", "false"])
.arg("-f")
.arg(&temp);
tracing::debug!("Executing command: '{:?}'", cmd); tracing::debug!("Executing command: '{:?}'", cmd);